![]() |
|
[AutoIt] Start a Simple GUI - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: [AutoIt] Start a Simple GUI (/Thread-AutoIt-Start-a-Simple-GUI) |
[AutoIt] Start a Simple GUI - ReaperX - 11-16-2011 Code: #Include <GUIConstants.au3>
GUIMain()
Func GUIMain()
;Replace Title With What You Want. Also Has Optional Width, Height and Position. View AutoIt Help.
GUICreate("TITLE")
;Place Any Varibles and Controls Here
GUISetState()
;This Runs the GUI Until the X is Pressed at the Top of the Window and is Used to Check for Events in the GUI. Such as a Button Press or Text Typed.
While 1
$msg = GUIGetMsg()
if $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
EndFunc |