john_2019 Posted March 31, 2020 Share Posted March 31, 2020 (edited) The title of some apps is dynamic. For example, Sublime Text. Open some file, make some changes and you will see that the title of Sublime Text is now supplemented with a bullet (•). Press Ctrl+S and the bullet will disappear. In such a case, the changes made by WinSetTitle will be lost. Is it a bug? How would you workaround it? Example() Func Example() Run("C:\Program Files\Sublime Text 3\sublime_text.exe") Local $hWnd = WinWait("[CLASS:PX_WINDOW_CLASS]", "", 10) WinSetTitle($hWnd, "", "test") EndFunc Edited March 31, 2020 by john_2019 Link to comment Share on other sites More sharing options...
Nine Posted April 1, 2020 Share Posted April 1, 2020 Like you did show us, by using its CLASS name. Once found, by using its handle for the rest of the script. But there is also those 2 options : Quote REGEXPTITLE - Window title using a regular expression (if the regular expression is wrong @error will be set to 2) REGEXPCLASS - Window classname using a regular expression (if the regular expression is wrong @error will be set to 2) “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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