iwanttoautomate Posted April 7, 2014 Share Posted April 7, 2014 Hi guys, I'm glad to be here on AutoIT forums with you. I'm a new guy in automation world and I am really happy finding AutoIT. I would like you to help me with getting the return value of checked/ unchecked checkbox state. ; Run Internet Explorer Run("C:\Program Files\Internet Explorer\iexplore.exe") Sleep(2000) ; Will open Tools -> Internet Options (General tab by default) Send("!Xo") Now there I want to make AutoIT to identify if "Delete browsing history on exit" checkbox is checked or not Using AutoItV3 Window Info tool, it says that "Delete browsing history on exit" checkbox is: Class - Button, Instance - 7 (not sure if this is specific) In case of identifying if checkbox is checked or not I would use "ControlCommand" function, right? So I would like to you guys help me with this. If "delete history" checkbox is checked(=1) then click on "Delete..." button if NOT checked(=0) click on "Settings" button Thanks in advance Link to comment Share on other sites More sharing options...
Palestinian Posted April 7, 2014 Share Posted April 7, 2014 (edited) Try this: ControlCommand("Internet Options","General","[CLASS:Button; INSTANCE:7]","IsChecked","") The help file is your best friend. Edited April 7, 2014 by Palestinian Link to comment Share on other sites More sharing options...
iwanttoautomate Posted April 7, 2014 Author Share Posted April 7, 2014 Thank you Palestinian for your quick and correct reply. 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