Sign in to follow this  
Followers 0
shutch00

If checkbox is checked then...

6 posts in this topic

#1 ·  Posted (edited)

I'm doing data entry that involves checking a lot of check boxes in a web application. 

I'd like my script to tab through the checkboxes and, if a box is unchecked, check it by sending the spacebar.  The only problem is I don't know how to read if the box is already checked or not.

Any ideas?

EDIT:  I've looked at GUICtrlRead but I'm not sure how to make it work.

Edited by shutch00

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

is it a website in html ?

then you can try

_IEFormElementGetValue()

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

Ah, I'll try that.  It's html and javascript.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

<input type='checkbox' name='checkboxG2Example' value='gameTennis' checked>Tennis<br>

from _IE_Example()

.

"checked" is the keyword

 

Edit:

this is the correct function:

_IEFormElementCheckBoxSelect()

Success: If $f_select = -1, returns the current checked state, else returns 1

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

Thanks for the help.  I'll have to research as I'm not real familiar with the IE functions and how they work.

Share this post


Link to post
Share on other sites

yes sure, that's a different world, but much better than sending "spacebars" ;)

1 person likes this

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

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