Jump to content
Sign in to follow this  
raoool

Special Character Matching in WinTitle

Recommended Posts

raoool

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.

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
seandisanti

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.

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  

×