Jump to content

Need Help by If Else Function


Icemaan
 Share

Recommended Posts

Hello

I want write a Script with Autoit which start a Application. For Example there a three possible Windows I call it here a;b;c

I have write

If WinExist ("a") then run X thats go

but i want that autoit check all 3 Possible Windows also

If WinExist (a or b or c )then run x when nothing from this exist then run y

Can anybody help me

Thanks so much and sorry for my bad English

So long Icemaan

Link to comment
Share on other sites

Hello

I want write a Script with Autoit which start a Application. For Example there a three possible Windows I call it here a;b;c

I have write

If WinExist ("a") then run X thats go

but i want that autoit check all 3 Possible Windows also

If WinExist (a or b or c )then run x when nothing from this exist then run y

Can anybody help me

Thanks so much and sorry for my bad English

So long Icemaan

this should do the job

if winexists ("a") or winexists ("b") or winexists("c") then
run ("X")
else
run ("Y")
endif

hope that helps you

Link to comment
Share on other sites

Ok can i write the following at the end

Sleep("500")

Winclose ("a") or ("b") or ("c")

I want do with this that the window which is open closed after the new window is open

Is this so correct

Icemaan

I see that this is not correct so following statement come

Error: Illegal text at the end of statement (one Statement per line)

What i have make not correct

Icemaan

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
 Share

  • Recently Browsing   0 members

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