lbrtdy Posted July 7, 2009 Share Posted July 7, 2009 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 More sharing options...
CodyBarrett Posted July 7, 2009 Share Posted July 7, 2009 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"] ) [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
lbrtdy Posted July 7, 2009 Author Share Posted July 7, 2009 Thank you for your fast reply, wingethandle works as a charm, thank you! Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 7, 2009 Share Posted July 7, 2009 Yes, handles are unique. Handles are the way windows are worked with internally. Link to comment Share on other sites More sharing options...
CodyBarrett Posted July 7, 2009 Share Posted July 7, 2009 lol no problem and thanks Richard [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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