dynamokaj Posted January 28, 2012 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
Guest Posted January 28, 2012 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
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