Jump to content

OR Statment


Recommended Posts

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.
Link to comment
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.

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