I would like to know how I can compile an icon library with my ahk script ? Is it possible ?
I've checked in the help file and found the following :
Code: Select all
Ahk2Exe.exe /in MyScript.ahk [/out MyScript.exe] [/icon MyIcon.ico] [/bin AutoHotkeySC.bin] [/mpress 0or1]
For example:
Ahk2Exe.exe /in "MyScript.ahk" /icon "MyIcon.ico"
Here's what I want to do, I want to change the tray icon depending on certain variables, for example :
Code: Select all
if (OutputVar1 = "1N") AND (OutputVar2 = "2N") AND (OutputVar3 = "3N") AND (OutputVar4 = "4N")
Menu, Tray, Icon, MyIcon.icl, 1
else if (OutputVar1 = "1N") AND (OutputVar2 = "2N") AND (OutputVar3 = "3N") AND (OutputVar4 = "4G")
Menu, Tray, Icon, MyIcon.icl, 2
else if (OutputVar1 = "1N") AND (OutputVar2 = "2N") AND (OutputVar3 = "3G") AND (OutputVar4 = "4N")
Menu, Tray, Icon, MyIcon.icl, 3
Thank you in advance for your help/advice