Sign in to follow this  
Followers 0
maddyd

How to know the status of a Button [Enable/Disable]?

6 posts in this topic

I am trying to automate installation of an .exe [One of our product related]. Script is completed and now working on error handling. Now i struck at final step where 'Next' button is in disabled state. My thought is to write an error message log and exit from code if 'Next' button is in disabled state but don't know how to find the button status. Please find the attached screenshot for reference

Can, anyone please guide me on how to find the status of button so that i can proceed further?

TIA

Share this post


Link to post
Share on other sites



Forgot to attach the screenshot... Please find it now

thanks

post-74311-0-70481900-1342427799_thumb.j

Share this post


Link to post
Share on other sites

ControlCommand() + IsEnabled

Thanks Zedna. I am not aware of the usage but i want to try this:

If not ControlCommand ("Win_Title_1", "Next", controlID, "IsEnabled", "") Then

Error log statements goes here

Exit

EndIf

In the above command, how can i get ControlID?

TIA

Share this post


Link to post
Share on other sites

Look here for example

Use Au3Info for getting ControlId.

Thanks Zedna. Your example helps in solving my case. Especially the usage of 'ControlCommand'. Appreciate your help :)

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