MarkMarkMark Posted April 8, 2005 Share Posted April 8, 2005 Hi guys, Is there a way to check if a checkbox is checked or not? U can find a screenshot in the attachment... - Mark Link to comment Share on other sites More sharing options...
CyberSlug Posted April 8, 2005 Share Posted April 8, 2005 ;status should either be 1 (checked) or 0 (unchecked) $status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Vu1kan Posted April 8, 2005 Share Posted April 8, 2005 (edited) nvmnd...i was way off Edited April 8, 2005 by Vu1kan Moooo... Link to comment Share on other sites More sharing options...
MarkMarkMark Posted April 8, 2005 Author Share Posted April 8, 2005 this is my code now: run("c:\program files\Internet Explorer\IEXPLORE.EXE") winwaitactive("Microsoft Internet Explorer") sleep(200) send("{ALT}") send("{X}") send("{O}") Send("+{TAB 1}") send("{UP}") ControlClick("Internet-opties", "&LAN-instellingen...", "Button13") $status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked") if "button6" = $status then msgbox(1, "1" ,"Proxy server is checked", 2) Else msgbox(1, "2", "Proxy server is not checked.", 2) endif It doesnt work... what am i doing wrong? Link to comment Share on other sites More sharing options...
CyberSlug Posted April 8, 2005 Share Posted April 8, 2005 if $status = 1 then msgbox(4096, "one" ,"Proxy server is checked", 2) Else msgbox(4096, "two", "Proxy server is not checked.", 2) endif Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
SlimShady Posted April 8, 2005 Share Posted April 8, 2005 Change: $status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked") if "button6" = $status then to: $status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked") if $status then 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