manit Posted May 13, 2021 Share Posted May 13, 2021 Hi, Here is my code Opt("WinTitleMatchMode", 2) Local $TextFileName = "Log-of-audacity-window.txt" If WinExists("Cross-Platform") Then $Logging = "Audacity« Cross-Cross-Platform Sound Editor window found" &@CRLF FileWrite($TextFileName, $Logging) Local $Cross-Platform_window_handle = WinGetHandle("Cross-Platform") $Logging = "Window handle is " &$Cross-Platform_window_handle &@CRLF FileWrite($TextFileName, $Logging) Local $found_win_title = ?? $Logging = "Window title is " &$found_win_title&@CRLF FileWrite($TextFileName, $Logging) EndIf Here, I am searching a window using a substring of title . Now I want to know the full title of window that was found . How can I do that ? Thanks. Link to comment Share on other sites More sharing options...
mikell Posted May 13, 2021 Share Posted May 13, 2021 WinGetTitle ? Link to comment Share on other sites More sharing options...
JockoDundee Posted May 13, 2021 Share Posted May 13, 2021 WinGetTitle ( "title" [, "text"] ) Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
JockoDundee Posted May 13, 2021 Share Posted May 13, 2021 Just now, mikell said: WinGetTitle ? Beat me by exactly the amount of time it takes to cut and paste from help Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
mikell Posted May 14, 2021 Share Posted May 14, 2021 10 hours ago, JockoDundee said: Beat me by exactly the amount of time it takes to cut and paste from help Keyboard Power 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