Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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 :)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...