Page 1 of 1

AHK Icon showing for compiled script with user defined icon

Posted: 16 Nov 2020, 18:29
by julesverne
I just wanted to alert all about a very odd bug with ahk_H vers 1 ahk2exe that was solved by @TheArkive

Bug: AutoHotKey icon showing for compiled script that should be user defined icon.

When compiling your script and choosing the option to include a user defined icon, you will see the icon in the taskbar when running the output exe but the file in Explorer will show the AHK icon. It seems that @TheArkive figured out that if you simply move the exe to a different location you will see the icon.

Weird bug, but his solution worked for me. Thanks @TheArkive

Even weirder is that when you move the exe back to where it was compiled, the icon goes back to being the autohotkey icon.

Re: AHK Icon showing for compiled script with user defined icon

Posted: 16 Nov 2020, 21:20
by HotKeyIt
AFAIK this is a problem in Windows, seems like icon cash is corrupted, see: https://winaero.com/how-to-repair-explorer-showing-incorrect-icons-by-deleting-and-rebuilding-the-icon-cache/