Jump to content
Sign in to follow this  
MarkMarkMark

Checking a checked checkedbox

Recommended Posts

MarkMarkMark

Hi guys,

Is there a way to check if a checkbox is checked or not?

U can find a screenshot in the attachment...

- Mark

Share this post


Link to post
Share on other sites
Vu1kan

nvmnd...i was way off

Edited by Vu1kan

Moooo...

Share this post


Link to post
Share on other sites
MarkMarkMark

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?

Share this post


Link to post
Share on other sites
SlimShady

Change:

$status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked")

if "button6" = $status then

to:

$status = ControlCommand ( "LAN-intellingen", "", "Button6", "IsChecked")

if $status then

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  

×