Amazon.com

Disclaimer

All the tips/hints/fixes/other information posted here are at your own risk. Some of the steps here could result in damage to your computer. For example, using a Windows registry editor like RegEdit could result in unintended serious changes that may be difficult or impossible to reverse. Backups are always encouraged.
Showing posts with label Registry. Show all posts
Showing posts with label Registry. Show all posts

16 November 2009

Open Registry Locations from the Clipboard

On several Windows tips sites (like this modest blog), there are Registry keys listed. A fast way to navigate to them is by using RegJump from Sysinternals or Nirsoft RegScanner (the latter is available in both 32-bit and 64-bit versions). Combined with a little AutoHotkey scripting, it's an easy way to open registry locations from web pages:

; AutoHotkey script fragment follows

06 January 2009

Fix Wireless Network Reconnection

If you're having problems with reconnecting to your wireless network after wake/resume from sleep/standby, or if you are getting errors upon connecting due to cancellation or timeout, or if you are having other problems with your wireless in Windows XP SP2 or Vista, try these solutions:

30 December 2008

Improving Wireless Networking on Vista (and XP?)

Some commands for the Command Prompt:
  • netsh int ipv4 reset
  • netsh winsock reset
  • netsh int tcp set global rss=enabled chimney=disabled autotuninglevel=normal congestionprovider=ctcp ecncapability=enabled timestamps=disabled
  • ipconfig /release
  • ipconfig /renew
Registry change from Microsoft KB928233:
  • DhcpConnForceBroadcastFlag 0

21 November 2008

Disable Wireless LED with Gigabyte GN-WI06

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0008

In the registry key above, changing the value for LinkLedFunc to 00 from 03 effectively disabled the WLAN indicator LED. Simply deleting the LED keys did not do the trick.

04 August 2008

How to Disable the Annoying Blinking LED for an Atheros Wireless Adapter

In Regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318} and look the key for your wireless adapter.
Back it up then delete the following keys:

gpioPinFunc1
gpioLedCustom
gpioFunc1ActHi


After, restart.

If you want to have a visual cue of network activity, you can right-click the network icon in the notification area of the taskbar and select Turn On Activity Animation, and this is more subtle and less distracting than the amber LED. By the way, the button to turn the wireless adapter on and off still works after deleting the above keys.

Crossposted here

10 May 2008

Quickly Insert Unicode (Greek, Symbols, etc.) into Any Application

Perhaps someday I'll write one killer article all about AutoHotkey and how it can accelerate your productivity, but for now I'll just discuss one problem it can (help) solve: inputting special characters such as α or → with ease. I put "help" in quotation marks, because AHK does not have an easy, built-in way of inputting Unicode characters (yet), but it can do effective text auto-replace (a.k.a. hotstrings). There are several clever solutions on the AHK forums for the Unicode deficit (SendU, etc.), and here's mine:

Add the following string entry to the Registry for the Alt-Plus method of entering characters:
Key: HKCU\Control Panel\Input Method
String name: EnableHexNumpad
Value: 1
After a restart, you can enter Unicode characters by their hexadecimal value. [That's the alphanumeric number U+03c3 in the left part of the status bar in Character Map.] Hold down Alt and press the + key on the numeric pad and then the hex code for the character you want, without the leading zeroes if you like and then release the Alt key. Convoluted, huh? Here's a script that show's how to make light work of it with AHK: specialchar.ahk

With this kind of script running, "/alpha" immediately becomes "α"

Bonus tip: you can use a "raw" hotstring for faster entries:
#IfWinActive HiEditor ; or whatever editor you use for editing AHK scripts
#Hotstring R
::<<::{alt down}{numpadadd}
::>>::{alt up}
#Hotstring R0
#IfWinActive

BTW, I should mention that AHK has a {ASC nnnnn} function for the alt-numpad method of entering special characters, but it has 2 main problems: it can enter only the decimal and not the hexadecimal code for a character (which is fine for ASCII and ANSI but less convenient for Unicode), and only certain applications using the RichText framework can interpret Unicode characters entered this way (decimal).

04 September 2007

Smart Defragging by Layout.ini for Free

By default, Windows XP tracks what files load during boot and application launches, and it uses that information to prefetch files into RAM. Additionally, the prefetch data are parsed into a file, %WINDIR%\Prefetch\layout.ini, which is used by XP's built-in Disk Defragmenter to optimize the layout of those files on the hard drive for faster access. Also, by default, a limited defrag operation takes place in the background during idle every three days just for the files specified in layout.ini. You might get a bigger performance benefit, however, but running by defragging by layout.ini more often. The command to do this layout.ini defrag is defrag c: -b. The "-b" switch is almost undocumented, and might have originally meant "boot", but it relocates boot and application launch files contiguously and nearer to the beginning of the hard drive for faster access. Since it moves only hundreds of files instead of tens of thousands, it's much faster than a normal disk defragmentation. If you want, you can make a Scheduled Task to run defrag c: -b however often you like (I have Scheduled Task to run this quick defrag every day during idle). If you want to additionally disable the 3-day operation, uncheck "Optimize hard drive when idle" in Tweak UI (or set EnableAutoLayout to 0 in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout ).

You will still need to defragment the hard drive from time to time. It is most effective to do so before the desktop loads. The utility ScanDefrag is very useful in that regard. A normal defragmentation with Disk Defragmenter includes optimizations guided by layout.ini.

Some otherwise really excellent defrag utilities will actually undo the defrag by layout.ini. (Windows XP Disk Defragmenter respects layout.ini.) For normal desktop/workstation use, the Windows defragmenter is best IMHO.

NB: For this tip to work, you need the default registry entries below:

Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
Name: Enable
Type: REG_SZ
Value: Y
I believe this enables Disk Defragmenter to respect layout.ini.

Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
Name: EnablePrefetcher
Type: REG_DWORD
Value: 3
0 = Prefetching Disabled; 1 = Application Prefetching Only; 2 = Boot Prefetching Only; 3 = Both Boot & Application Prefetching Enabled

PS Running Rundll32.exe advapi32.dll,ProcessIdleTasks will rebuild Layout.ini from the prefetch data and then (if EnableAutoLayout is set to 1) optimize layout on the disk from the refreshed layout.ini. The command also launches other tasks that happen during idle, such as System Restore.

01 September 2007

Restore the Startup Folder

I had a problem with a program shortcut in my Startup folder that would launch with an error that the program was already loaded. I figured out that not only was the shortcut in the Startup folder for "All Users" but that my user account Startup folder was also considered to be that same "All Users" folder (%ALLUSERSPROFILE%\Start Menu\Programs\Startup) [I'm using the universal direction here. You can type %ALLUSERSPROFILE% and %USERPROFILE% into the Run box in the Start Menu to find the specific absolute paths for your system]. In effect, everything in the Startup folder would launch twice: once for "All Users" and again just for my account, even though it was the same folder.

To fix this, I created new folders: %USERPROFILE%\Start Menu\Programs and %USERPROFILE%\Start Menu\Programs\Startup which were missing. I then used RegEdit to go to the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders and made sure the values Start Menu, Programs, and Startup pointed to the folders in my user account folder and not the All Users folder. Now, my Common Startup and user Startup folders were different.

Related: in Regedit, use String values [REG_SZ] for absolute paths (e.g.: C:\Documents and Settings\Administrator) and Expandable String values [REG_EXPAND_SZ] for the %-style paths (e.g. %USERPROFILE%).

Reference: http://windowsxp.mvps.org/usershellfolders.htm

UPDATE: You can also use Tweak UI to adjust user shell folders. This is useful in the case above, or if you want to make an adjustment such as keeping "My Documents" and the Desktop folder on the same drive. Within Tweak UI, the user shell folders setting is in My Computer-Special Folders.