Jump to content

Vbscript WinTitleMatchMode problem


CyberMax
 Share

Recommended Posts

This script below works

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
Call oAutoIt.Opt("WinTitleMatchMode", 2)


If oAutoIt.WinExists("note") Then
    WScript.Echo "Window exists"
End If

but this script below dont works

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
Call oAutoIt.Opt("WinTitleMatchMode", -2)


If oAutoIt.WinExists("note") Then
    WScript.Echo "Window exists"
End If

What did I do wrong here? I need it to be case insensitive so that I can match any title irregardless of the lowercase or uppercase of the same title.

Please help. Thank you.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

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