Jump to content
Sign in to follow this  
punisa

WinTitleMatchMode and full title

Recommended Posts

punisa

Hi !

I use

Opt("WinTitleMatchMode", 2)

to monitor my window which has a substring "media".

Is there any way that I could get the full title of the current "media" window?

As you probably guessed, the window title changes often, but the substring "media" is constant.

I browsed the forums n' help file, but just couldn't solve it.

Edited by punisa

carpe diem

Share this post


Link to post
Share on other sites
punisa

Hey,

Shouldnt this work?

$sWinTitle = WinGetTitle("Media", "") ; <- case sensitve 
ConsoleWrite("sWinTitle: " & $sWinTitle & @CRLF)
Thank you sir, not only did you resolve my problem, but also reminded me that I should start drinking stronger coffe in the morning :o

I can't believe I actually missed out such an obvious solution, haha ! :)

Once again, thanks - it works perfectly !


carpe diem

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  

×