Jump to content

GUI.


Recommended Posts

Try something like this:

CODE
While 1

$msg = GUIGetMsg()

If $msg = $installprograms Then

Run ("Progam Load.exe", "C:\Documents and Settings\Admin\Desktop\")

EndIf

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

Link to comment
Share on other sites

Try something like this:

CODE
While 1

$msg = GUIGetMsg()

If $msg = $installprograms Then

Run ("Progam Load.exe", "C:\Documents and Settings\Admin\Desktop\")

EndIf

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

Thanks, but my GUI did not start when I put in your code.

Here is the complete script so you can get a better idea of what I am doing:

; MENU 
$installprograms = GUICtrlCreateMenu ("&Install Programs")
;--------------------------------------------------------------
$filemenu = GUICtrlCreateMenu ("Auto-it")
$runautoittutorial = GUICtrlCreateMenuitem ("Run Tutorial",$filemenu)
$aboutautoit = GUICtrlCreateMenuitem ("About",$filemenu)
$autoitwebsite = GUICtrlCreateMenuitem ("Official Website",$filemenu)
;--------------------------------------------------------------
$filemenu = GUICtrlCreateMenu ("Win-spy")
$runautoittutorial = GUICtrlCreateMenuitem ("Run Tutorial",$filemenu)
$aboutautoit = GUICtrlCreateMenuitem ("About",$filemenu)
$autoitwebsite = GUICtrlCreateMenuitem ("Official Website",$filemenu)
;--------------------------------------------------------------
$filemenu = GUICtrlCreateMenu ("Macro-Recorder")
$runautoittutorial = GUICtrlCreateMenuitem ("Run Tutorial",$filemenu)
$aboutautoit = GUICtrlCreateMenuitem ("About",$filemenu)
$autoitwebsite = GUICtrlCreateMenuitem ("Official Website",$filemenu)
;--------------------------------------------------------------
$filemenu = GUICtrlCreateMenu ("Useful Items")
$fourm = GUICtrlCreateMenuitem ("AutoIt Forum",$filemenu)
$paint = GUICtrlCreateMenuitem ("MS Paint",$filemenu)
$notepad = GUICtrlCreateMenuitem ("MS Notepad",$filemenu)
;-------------------------------------------------------------
$filemenu = GUICtrlCreateMenu ("Help")
$runautoittutorial = GUICtrlCreateMenuitem ("Help Software",$filemenu)
$autoitwebsite = GUICtrlCreateMenuitem ("Macrolism Website",$filemenu)
;-----------------------------------Menus and Programs-------------------------------------------------
;--------------------------------------GUI CONTENT-----------------------------------------------------
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd
 Run (Brain.exe)
.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...