Jump to content

Recommended Posts

Posted

how do you match a title exactly when it contains the ( and ) characters

e.g. The Program (offline)

Partial match won't work.

Anyone?

Thanks in advance.

  • Moderators
Posted

Use the 'Class'. You can find it in the AutoInfo tool.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Special Character Matching in WinTitle - AutoIt Forums - Mozilla Firefox

Class: MozillaUIWindowClass

Example:

Opt("WinTitleMatchMode", 4);<< make sure it's set to 4
$WinTitle = WinGetTitle("classname=MozillaUIWindowClass")
MsgBox(0, "Check Title", "The Title Of FireFox is: " & $WinTitle)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

how do you match a title exactly when it contains the ( and ) characters

e.g. The Program (offline)

Partial match won't work.

Anyone?

Thanks in advance.

not sure why a partial match won't work, but you do have other options also...check out the WinTitleMatchMode in the helpfile.

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