maddyd Posted July 16, 2012 Share Posted July 16, 2012 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 Link to comment Share on other sites More sharing options...
maddyd Posted July 16, 2012 Author Share Posted July 16, 2012 Forgot to attach the screenshot... Please find it now thanks Link to comment Share on other sites More sharing options...
Zedna Posted July 16, 2012 Share Posted July 16, 2012 ControlCommand() + IsEnabled Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
maddyd Posted July 16, 2012 Author Share Posted July 16, 2012 ControlCommand() + IsEnabledThanks 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 ExitEndIfIn the above command, how can i get ControlID?TIA Link to comment Share on other sites More sharing options...
Zedna Posted July 16, 2012 Share Posted July 16, 2012 Look here for exampleUse Au3Info for getting ControlId. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
maddyd Posted July 17, 2012 Author Share Posted July 17, 2012 Look here for exampleUse Au3Info for getting ControlId.Thanks Zedna. Your example helps in solving my case. Especially the usage of 'ControlCommand'. Appreciate your help 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