Jump to content

i want to run exe file when click button


Recommended Posts

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

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