Jump to content
Sign in to follow this  
cypher175

Collect all CheckBoxes & Untick Them All..?

Recommended Posts

cypher175

What functions would i need to use to search a WebPage for all of its CheckBoxes and then once they all have been collected, Untick them All without 1st knowing the names or ID's of the CheckBoxes..??

Share this post


Link to post
Share on other sites
DaRam

If all you need to do is toggle the checkboxes, you can do it without using AutoIt; Search the Web for Bookmarklets.

What functions would i need to use to search a WebPage for all of its CheckBoxes and then once they all have been collected, Untick them All without 1st knowing the names or ID's of the CheckBoxes..??

Share this post


Link to post
Share on other sites
PsaltyDS

What functions would i need to use to search a WebPage for all of its CheckBoxes and then once they all have been collected, Untick them All without 1st knowing the names or ID's of the CheckBoxes..??

You can collect the "input" tags and check .type = "checkbox", but then you have to check how many checkboxes are in each and hit them all by index (since you don't know any names or ids).

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
cypher175

Well what im trying to do is to open a URL "http://proxy.org/proxy.pl?url=www.website.com" in IE, then once the random proxy is rendered i need to uncheck/Enable the Javascript CheckBox, but the ID or Name for this box varies from Proxy to Proxy.. So how could I have a way to search for it in general on every proxy page and then untick it..??

And also the URL Submit Form Varies From Proxy to Proxy as well, and i need a way to find it too and submit my URL..??

Share this post


Link to post
Share on other sites
PsaltyDS

Well what im trying to do is to open a URL "http://proxy.org/proxy.pl?url=www.website.com" in IE, then once the random proxy is rendered i need to uncheck/Enable the Javascript CheckBox, but the ID or Name for this box varies from Proxy to Proxy.. So how could I have a way to search for it in general on every proxy page and then untick it..??

And also the URL Submit Form Varies From Proxy to Proxy as well, and i need a way to find it too and submit my URL..??

You need to study the IE DOM for familiarity and experiment with the _IE* functions of the IE.au3 UDF. There is no universal answer that will work on every web page.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Stilgar

With FireFox/FF.au3 you can do this:

_FFXPath("//input[@type='checkbox']","checked=false",7)

that's all.

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  

×