So i have a problem with updating the icon for my gui. I want to have it so when i press a button the icon changes, and when i press another button it changes to a different icon.
I can change the icon once when i create the gui with this script:
gui, show, w0 h0
Menu, Tray, Icon, %A_WorkingDir%\Files\Red_Icon.ico, 1, 1
gui, destroy
But i cant seem to be able to change it multiple times
So im wondering how i change the icon multiple times/How to uppdate to icon
If you just want to toggle between the icon one and icon two you can use this:
If you want to switch between multiple icons then use this: