Jump to content

WinTitleMatchMode and Case Sensitivity


Recommended Posts

I created a quick script to set/clear the topmost status of a window. It works like

    top <title> /on | /off
    
I want the title match to be case insensitive and to work on partial strings. For example, if the window of note is titled "APLX for Windows" I want

    top apl /on
    
to work. The AutoIt manual says that for WinTitleMatchMode

    Mode -1 to -4

        Force lower case match according to other type of match.

so I assumed that by

    aut.Opt "WinTitleMatchMode",-1
    
I would be doing a lower case match on existing windows. As long as I lcase(title) for the comparison it should match on "APLX for Windows" but it does not Is this a bug or am I misreading the docs?    

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

×
×
  • Create New...