foyez Posted June 4, 2022 Share Posted June 4, 2022 plz help for slove this #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #global ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) $Group1 = GUICtrlCreateGroup("Group1", 48, 16, 521, 401) $Button1 = GUICtrlCreateButton("Button1", 96, 72, 75, 25) $Button2 = GUICtrlCreateButton("Button2", 224, 72, 75, 25) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Case $MSG = $button1 Run("C:\Users\mrsolution\Desktop\PDT.exe") Case $MSG = $button2 Run("C:\Users\mrsolution\Desktop\x64\dpinst.exe") Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Developers Jos Posted June 4, 2022 Developers Share Posted June 4, 2022 Your Case lines need to be within the Switch-EndSwitch Lines! SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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