Jump to content
Sign in to follow this  
lilandywandy

Can autoit do this?

Recommended Posts

lilandywandy

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"?

Share this post


Link to post
Share on other sites
Insolence

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.

Share this post


Link to post
Share on other sites
lilandywandy

ok so if i have a program called programX, how do i make it do something when programX is not active

Share this post


Link to post
Share on other sites
Encryption

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

Share this post


Link to post
Share on other sites
herewasplato

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

After 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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
MSLx Fanboy

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())

Share this post


Link to post
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
Sign in to follow this  

×