Sign in to follow this  
Followers 0
lbrtdy

How to get wintitle

5 posts in this topic

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.

Share this post


Link to post
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"] )

Share this post


Link to post
Share on other sites

Thank you for your fast reply, wingethandle works as a charm, thank you!

Share this post


Link to post
Share on other sites

Yes, handles are unique. Handles are the way windows are worked with internally.

Share this post


Link to post
Share on other sites

lol no problem and thanks Richard

Share this post


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
Sign in to follow this  
Followers 0