Sign in to follow this  
Followers 0
dynamokaj

With WinExists I can see if a window exists, can I do something similar for a Control?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Aipion

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