Here's my current script:
Code: Select all
#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Status := 1
Keys := []
Gui Add, CheckBox, x534 y257 w120 h23, CheckBox
Gui Font, s20 cRed, Georgia
Gui Add, Text, x1 y-4 w306 h36 +0x200, Test
Gui Font
Gui Add, Edit, x3 y31 w474 h150
Gui Add, Button, x2 y188 w210 h37 vSb1 gSub1, Execute [F5]
Gui Show, w481 h231, Test and learn
Return
F5:: gosub, Sub1
Sub1:
{
if (Status = 1){
GuiControl Text, Sb1, Executing [F5]
Status := 0
}else{
GuiControl Text, Sb1, Execute [F5]
Status := 1
}
Return
}
GuiEscape:
GuiClose:
ExitApp
; Do not edit above this line