Warcraft Icon Addition

Getting bored of the big old Default AutoHotKey 'H' symbol in your taskbar?
Just add this nifty code to any of your scripts and when run, it will have the default warcraft III icon instead.
Add it after the intro lines (those containing #) and before the actual code.


Warcraft Icon

regread, war, HKEY_CURRENT_USER, Software\Blizzard Entertainment\Warcraft III, ProgramX
menu, tray, Icon, %War%, 1, 1

Note: If there is an error it is because the edit in the registry does not exists. To fix this, simply run the registry console.
Windows Key & R -> type 'regedit' -> navigate to HKCU_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III
Right Click and add "New String Value". Rename that to 'ProgramX' and input (by a double click) the directory of your Frozen Throne executable.
ex. Mine is C:\Program Files\Games\Warcraft III\Frozen Throne.exe

NOTE: Do not in any circumstance delete or modify other values. This can lead to the destruction of your computer, operating system or other data. This website is not held responsible for any actions beyond the application noted above.