lilandywandy Posted February 8, 2005 Posted February 8, 2005 can autoit reconize the programs that are running? if it can, is there a way i could do this : "if programX is not on, then move mouse and click blah blah"?
Insolence Posted February 8, 2005 Posted February 8, 2005 Yes. ProcessExists, WinExists, ect. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
lilandywandy Posted February 8, 2005 Author Posted February 8, 2005 ok so if i have a program called programX, how do i make it do something when programX is not active
Encryption Posted February 8, 2005 Posted February 8, 2005 ok so if i have a program called programX, how do i make it do something when programX is not active<{POST_SNAPBACK}>read the autoit help file...it will do you a world of good
herewasplato Posted February 8, 2005 Posted February 8, 2005 (edited) ok so if i have a program called programX, how do i make it do something when programX is not active<{POST_SNAPBACK}>I do not know if you want to make programX active and then work with it or if you want to work with it while it is not the active window... you can make it active via WinActivate --- or:Open the help file Contents >> AutoIt >> Using AutoIt >> ControlsAfter you carefully read thru that, look at the related info links at the bottom.It will depend on what you want to do and if programX will work with controls.later.....Edit: added "Contents" Edited February 8, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
MSLx Fanboy Posted February 9, 2005 Posted February 9, 2005 If ProcessExists('someprogram.exe') Then MsgBox(0,'It does exist!', 'It does exist, put more commands in this section') Else MsgBox(0, 'It doesn't exist!", 'The program is not running, put more commands here to do what you want when its not running...') EndIf Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
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