pumpas Posted September 13, 2004 Share Posted September 13, 2004 its source of my program ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,273,(@DesktopWidth-392)/2, (@DesktopHeight-273)/2 , 0x04CF0000) $Exit = GUISetControl("button", "Exit", 120, 130, 160, 70) $Connect = GUISetControl("button", "Connect", 120, 40, 160, 80) If $Exit = -1 Then exit EndIf GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 2 ;;; Case $msg = $Exit ;;; Case $msg = $Connect ;;; EndSelect WEnd Exit how i can bind connect button to command and exit button to exit script? Link to comment Share on other sites More sharing options...
CyberSlug Posted September 13, 2004 Share Posted September 13, 2004 Replace Case $msg = $Exit ;;; Case $msg = $Connect ;;; With whatever is appropriate:Case $msg = $Exit Exit Case $msg = $Connect Run("SomeProgram.exe") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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