Sign in to follow this  
Followers 0
willwatters

OR Statment

3 posts in this topic

Is this statment correct:

If WinExists("test.doc - Microsoft Word") OR WinExists("test - Microsoft Word") Then

If not will you please correct.

Thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Is this statment correct:

If WinExists("test.doc - Microsoft Word") OR WinExists("test - Microsoft Word") Then

If not will you please correct.

Thanks.

<{POST_SNAPBACK}>

Looks fine to me. Edited by SolidSnake

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

You can always test logic with simple code:

if 1=1 or 2=3 then
  msgbox(1,"test shown as","true")
else
  msgbox(1,"test shown as"."not true")
Endif

just make sure you set WinTitleMatchMode to what you want

Alters the method that is used to match window titles during search operations.

1 = Match the title from the start (default)

2 = Match any substring in the title

3 = Exact title match

4 = Advanced mode, see Window Titles & Text (Advanced)


AutoIt3, the MACGYVER Pocket Knife for computers.

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  
Followers 0