Jump to content

How to get wintitle


Recommended Posts

Okay so I have a script that when I push a button, it hides a certain type of window, specifically [class:CLIENT]. And push another button it'll show [class:client]. But.. When I have two windows open with the same class, the hide button will hide the window, but the show button won't show it since there's already another [class:client]. But even though the 2 window's classes are same, their window title is different. So my question is how do you get the title of a window whose class is CLIENT? That way I can save the hidden window's title to a variable and when prompted to show, I'll restore by the title thus hopefully avoiding the problem where the show button doesn't work due to another window with same class being open. Thanks.

Link to comment
Share on other sites

use the handle... to my knowledge every winhandle is different ( i'm really not sure correction is accepted) Wingehandle (title,text)... that or WinGetClassList ( "title" [, "text"] )

Link to comment
Share on other sites

lol no problem and thanks Richard

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...