Jump to content

Recommended Posts

Posted

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)
.
Posted

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

Posted

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)
.

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
  • Recently Browsing   0 members

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