Jump to content

how to get title of window using handle

Recommended Posts

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)

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 ? 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...