Code: Select all
;@Ahk2Exe-AddResource game.ico, ICON1
;@Ahk2Exe-AddResource heart.ico, ICON2
;@Ahk2Exe-AddResource keyboard.ico, ICON3
Code: Select all
TraySetIcon "ICON1",, true
Code: Select all
;@Ahk2Exe-AddResource game.ico, ICON1
;@Ahk2Exe-AddResource heart.ico, ICON2
;@Ahk2Exe-AddResource keyboard.ico, ICON3
Code: Select all
TraySetIcon "ICON1",, true
Alternatively, you can specify the sequential index of the icon resource as a positive IconNumber.If negative, the absolute value is assumed to be the resource ID of an icon within an executable file.
Code: Select all
;@Ahk2Exe-AddResource game.ico, 10
TraySetIcon A_ScriptFullPath, -10, true
Users browsing this forum: DavidP and 77 guests