punisa Posted January 13, 2009 Posted January 13, 2009 (edited) 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 January 13, 2009 by punisa carpe diem
Robjong Posted January 13, 2009 Posted January 13, 2009 (edited) Hey,Shouldnt this work?$sWinTitle = WinGetTitle("Media", "") ; <- case sensitve ConsoleWrite("sWinTitle: " & $sWinTitle & @CRLF)did you also check this; http://www.autoitscript.com/autoit3/docs/i...owsadvanced.htmEdit: URL Edited January 13, 2009 by Robjong
punisa Posted January 13, 2009 Author Posted January 13, 2009 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 I can't believe I actually missed out such an obvious solution, haha ! Once again, thanks - it works perfectly ! carpe diem
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now