[AutoIt] Start a Simple GUI 11-16-2011, 01:54 AM
#1
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
(This post was last modified: 11-16-2011, 01:55 AM by doojan.)




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)