flip2405 Posted March 22, 2008 Share Posted March 22, 2008 okay i get some of the gui concept... i have not attempted any thing yet how ever could some one make me a gui script that the gui starts there is 1 check box when the check box is enable open notepad and type something just so i can see the source and get a general ideal of how to do it Link to comment Share on other sites More sharing options...
rasim Posted March 22, 2008 Share Posted March 22, 2008 Example: #include <GuiConstants.au3> $hGui = GUICreate("Test GUI", 200, 100) $checkbox = GUICtrlCreateCheckbox("Run notepad", 50, 45, 80, 16) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $checkbox If GUICtrlRead($checkbox) = $GUI_CHECKED Then Run("notepad.exe") WinWait("[Class:Notepad]") ControlSend("[Class:Notepad]", "", "Edit1", "Hello world!", 1) GUICtrlSetState($checkbox, $GUI_UNCHECKED) EndIf EndSwitch WEnd Anantapolk 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now