Jump to content

Recommended Posts

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.
Link to post
Share on other sites

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]

Link to post
Share on other sites

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())
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...