;@Ahk2Exe-SetMainIcon DCS_114.ico Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
4evernoob
Posts: 7
Joined: 15 Aug 2022, 15:11

;@Ahk2Exe-SetMainIcon DCS_114.ico

Post by 4evernoob » 15 Aug 2022, 19:16

This is not working for me. I have same H icon after compile. The icon file is in same folder with .AHK when compiled. What am I missing?

This is working for the tray icon.

Menu, Tray, Icon, DCS_114.ico

TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: ;@Ahk2Exe-SetMainIcon DCS_114.ico  Topic is solved

Post by TAC109 » 15 Aug 2022, 22:49

In fact, the icon has probably changed. You can check with a utility such as Resource Hacker. Windows Explorer caches the icons and doesn’t refresh them unless forced to, by for example, a restart of the computer, or (Windows 10+) entering ie4uinit.exe -show at an administrator command prompt. (For earlier versions of Windows the command is ie4uinit.exe -ClearIconCache.)

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

4evernoob
Posts: 7
Joined: 15 Aug 2022, 15:11

Re: ;@Ahk2Exe-SetMainIcon DCS_114.ico

Post by 4evernoob » 16 Aug 2022, 08:10

Whoa! Cool thanks.

Post Reply

Return to “Ask for Help (v1)”