Jump to content


Recommended Posts

#include <GUIConstants.au3>

GUICreate ( "Test", 190, 84 )
GUISetState (@SW_SHOW)

$exe1 = GUICtrlCreateButton( "Open exe 1", 47, 16, 100, 22 )
$exe2 = GUICtrlCreateButton( "Open exe 2", 47, 50, 100, 22 )

While 1
  $msg = GUIGetMsg()
  Case $msg = $exe1
     ;Run Program number 1
      Run("C:\Prog Dir\Program Name1.exe")
  Case $msg = $exe2
     ;Run Program number 2
      Run("C:\Prog Dir\Program Name2.exe")
  Case $msg = $GUI_EVENT_CLOSE


I think that's what you mean. Sorry if it's not.

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

  • Recently Browsing   0 members

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