| View previous topic :: View next topic |
| Author |
Message |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Wed May 05, 2004 3:16 pm Post subject: FileCreateShortcut ... |
|
|
I used FileCreateShortcut to create a shortcut at the StartMenu (from within a compiled script).
The icon which was displayed afterwards in the StartMenu wasn't the one I've given as a parameter (but its one which has been included in the exe "...16.ico").
I've checked that StartMenu Shortcut Properties - and guess what - there it shows the correct one ("...16CAST.ico").
After a reboot the icon on the startmenu has, for whatever reason, changed into the correct one as well.  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed May 05, 2004 5:53 pm Post subject: |
|
|
That's interesting info. Windows is a little lazy about updating program icons, which I believe it keeps cached for performance. I think it automatically refreshes the cache every hour or so, and of course a reboot fixes it (as you discovered).
This same "delayed reaction" effect also applies to the shortcut's shortcut key (which requires a reboot on Windows 9x I think) and perhaps other attributes as well. |
|
| Back to top |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Wed May 05, 2004 11:26 pm Post subject: |
|
|
Just for the record:
W2K / SP4
AHK 1.0.09
 |
|
| Back to top |
|
 |
|