how to get title of window using handle

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
manit123
Posts: 16
Joined: Tue May 28, 2013 12:35 pm
Operating System: Please select

how to get title of window using handle

Post by manit123 » Thu May 13, 2021 3:51 am

Hi,
Here is my code

Code: Select all

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
[code]

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.

steve
Site Admin
Posts: 81435
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to get title of window using handle

Post by steve » Thu May 13, 2021 10:42 am

What language is that?
Is it an AutoIt script? If it is, you may do best asking on the AutoIt forum: https://www.autoitscript.com/forum/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

manit123
Posts: 16
Joined: Tue May 28, 2013 12:35 pm
Operating System: Please select

Re: how to get title of window using handle

Post by manit123 » Thu May 13, 2021 5:48 pm

I am sorry .
I will post it on autoit forum .
Thanks .

Post Reply