Wikipete Posted May 30, 2008 Share Posted May 30, 2008 Hi, How would I get this to happen Run ("Progam Load.exe", "C:\Documents and Settings\Admin\Desktop\")oÝ÷ Û^«¬z·%É,¶¬jëh×6 $installprograms = GUICtrlCreateMenu ("&Install Programs") I have tried the help file, but all it gave me was Control Id, which I don't know. Thanks! Run (Brain.exe). Link to comment Share on other sites More sharing options...
RodT Posted May 30, 2008 Share Posted May 30, 2008 Try something like this: CODEWhile 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 More sharing options...
Wikipete Posted May 30, 2008 Author Share Posted May 30, 2008 Try something like this: CODEWhile 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 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