Jump to content
Sign in to follow this  
EndFunc

checkbox control with no form

Recommended Posts

EndFunc

I am trying to check and uncheck controls on a web page put can't get it to work. When I try to use the _IEFormElementCheckBoxSelect() I don't have a Form Object because the checkboxes aren't in a for and just on the page.

Any suggestions?

I'm trying it from this page http://www.adobe.com/shockwave/download/do...mp;promoid=BIOW


EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
Share on other sites
Valuater

I am trying to check and uncheck controls on a web page put can't get it to work. When I try to use the _IEFormElementCheckBoxSelect() I don't have a Form Object because the checkboxes aren't in a for and just on the page.

Any suggestions?

I'm trying it from this page http://www.adobe.com/shockwave/download/do...mp;promoid=BIOW

I dont show ANY checkboxes on that link you posted

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
EndFunc

I dont show ANY checkboxes on that link you posted

8)

In the center of the page there is a checkbox if you want to also install Google Toolbar. I want to uncheck that. Also below that you have to check the Terms of Service, but they are not in forms.


EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
Share on other sites
big_daddy

@Val - You have to open it in IE, Firefox doesn't show the same.

Try this...

#include <IE.au3>

$sURL = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW"

$oIE = _IECreate($sURL)
ConsoleWrite(_IEBodyReadHTML($oIE) & @CR)
$oToolbar = _IEGetObjByName($oIE, "ToolbarCheckbox")
$oTerms = _IEGetObjByName($oIE, "TermsCheckbox")
$oInstall = _IEGetObjByName($oIE, "InstallNow")

If $oToolbar.checked Then
    $oToolbar.checked = False
    $oToolbar.fireEvent ("onclick")
EndIf

If Not $oTerms.checked Then
    $oTerms.checked = True
    $oToolbar.fireEvent ("onclick")
EndIf

_IEAction($oInstall, "click")

Share this post


Link to post
Share on other sites
EndFunc

@Val - You have to open it in IE, Firefox doesn't show the same.

Try this...

#include <IE.au3>

$sURL = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW"

$oIE = _IECreate($sURL)
ConsoleWrite(_IEBodyReadHTML($oIE) & @CR)
$oToolbar = _IEGetObjByName($oIE, "ToolbarCheckbox")
$oTerms = _IEGetObjByName($oIE, "TermsCheckbox")
$oInstall = _IEGetObjByName($oIE, "InstallNow")

If $oToolbar.checked Then
    $oToolbar.checked = False
    $oToolbar.fireEvent ("onclick")
EndIf

If Not $oTerms.checked Then
    $oTerms.checked = True
    $oToolbar.fireEvent ("onclick")
EndIf

_IEAction($oInstall, "click")
Thanks that seems to work great. I appreciate it. I just couldn't get it. :)

EndFuncAutoIt is the shiznit. I love it.

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  

×