I'm basically wanting the box to be green when it's toggled on and red when it's toggled off.
Any tips or solutions someone could offer me? I'm fairly new to AHK so any help is greatly appreciated. Thanks in advance!
Code: Select all
CustomColor = 000000 Gui +LastFound +AlwaysOnTop +ToolWindow -Caption Gui, Color, %CustomColor% Gui, Font, s16, Cambria bold Gui, Add, Text, x50 y0 w190 BackgroundTrans gGuiMove 0x5 Gui, Add, Text, x50 y0 w190 BackgroundTrans cWhite, The Script is On. WinSet, TransColor, %CustomColor% 200 Gui, Show LButton::- RButton::= `:: suspend, toggle if t:=!t GuiControl, Text, Static2, Combat Mode OFF. Else GuiControl, Text, Static2, Combat Mode ON. return GuiMove: PostMessage, 0xA1, 2,,, A Return