mamut Posted February 7, 2009 Share Posted February 7, 2009 $han=WinGetHandle("[active]") now how to check if $han is "[TITLE:My title; CLASS:My class;]" ? Link to comment Share on other sites More sharing options...
BrettF Posted February 7, 2009 Share Posted February 7, 2009 What do you wish to achieve? Because from what I think you might be, its not the best method IMO. Cheers, Brett P.S- POST YOUR CODE. Thanks Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 7, 2009 Share Posted February 7, 2009 $han=WinGetHandle("[active]") now how to check if $han is "[TITLE:My title; CLASS:My class;]" ? How about this? $han=WinGetHandle("[active]") If $han = WinGetHandle("[CLASS:My class; TITLE:My title]") Then ; ...match EndIf But that is kind of silly. You could just use this for example: If WinActive("[CLASS:My class; TITLE:My title]") Then ; ...match EndIf Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
mamut Posted February 8, 2009 Author Share Posted February 8, 2009 thanks PsaltyDS that is what i need "WinActive" (i don't know why i missed that) 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