Drew Posted May 2, 2008 Share Posted May 2, 2008 Is it possible to set my script so that , if its not running , neither will a different .exe? Or like... if you start one program , it will start my program? Pretty much where you can't have one without the other... Anyone have anything on this? Link to comment Share on other sites More sharing options...
Valuater Posted May 2, 2008 Share Posted May 2, 2008 Kinda two things here.. #include <WindowsConstants.au3> Run('calc.exe') WinWait('Calculator') $hWnd = WinGetHandle('[LAST]') $myGUI = GUICreate('', 27, 26, 230, 62, $WS_CHILD, 0, $hWnd) $butt = GUICtrlCreateButton('HI!', 0, 0, 27, 26) GUISetState() While WinExists($hWnd) $gm = GUIGetMsg() If $gm = $butt Then MsgBox(0, 'Button', 'You clicked the button!') EndIf WEnd 8) Link to comment Share on other sites More sharing options...
Muchuchu Posted May 2, 2008 Share Posted May 2, 2008 Valuater's script should work, just basic logic to find out a way to do it really though. Is it me or have there been an influx of these types of questions the past couple weeks? Link to comment Share on other sites More sharing options...
MerkurAlex Posted May 2, 2008 Share Posted May 2, 2008 Valuater's script should work, just basic logic to find out a way to do it really though.Is it me or have there been an influx of these types of questions the past couple weeks?Yea i think there is a few new comers and people who are just plain tired at the moment i know i am... anyway i think im off to bed cya guys later. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] 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