Sign in to follow this  
Followers 0
win2k

CheckBoxes

4 posts in this topic

I was wondering if Autoit is able to figure out what checkbox it currently has selected? Is there like a command to check that?

Share this post


Link to post
Share on other sites



I was wondering if Autoit is able to figure out what checkbox it currently has selected? Is there like a command to check that?

I'm not sure if there is, but here is a workaround...

if $checkbox = $GUI_CHECKED then
;;;
endif

Where $checkbox is the checkbox control...

Now as for a single command, I'n not sure, but this should do the same


F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]

Share this post


Link to post
Share on other sites

I'm not sure if there is, but here is a workaround...

if $checkbox = $GUI_CHECKED then
;;;
endif

Where $checkbox is the checkbox control...

Now as for a single command, I'n not sure, but this should do the same

I found something that works better, I just used the Autoit window info for a Control ID on the active window and ConrtolFocus() to select the one that i needed

Thanks though

Share this post


Link to post
Share on other sites

Beta + GUICtrlGetState(), there's an exact example there that your asking about.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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  
Followers 0