dynamokaj Posted January 28, 2012 Share Posted January 28, 2012 Hi With WinExists I can see if a window exists, can I do something similar for a Control? Lets say ControlExists. I would like to know if the Control exists before wasting time on sending keystrokes to it, Thanks alot for your time Regards Kaj Link to comment Share on other sites More sharing options...
Guest Posted January 28, 2012 Share Posted January 28, 2012 (edited) You can use ControlGetHandle ( "windowtitle", "text", controlID ) function to see if the control exists. The function will return : Success: Returns the handle (HWND) value. Failure: Returns "" (blank string) and sets @error to 1 if no window matches the criteria. By the way this is from the AutoIt help file @: Function Reference > Window Management > Controls > ControlGetHandle Edited January 28, 2012 by Guest Link to comment Share on other sites More sharing options...
dynamokaj Posted January 28, 2012 Author Share Posted January 28, 2012 Thanks 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