EndFunc Posted May 10, 2007 Share Posted May 10, 2007 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. Link to comment Share on other sites More sharing options...
Valuater Posted May 10, 2007 Share Posted May 10, 2007 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=BIOWI dont show ANY checkboxes on that link you posted8) Link to comment Share on other sites More sharing options...
EndFunc Posted May 10, 2007 Author Share Posted May 10, 2007 I dont show ANY checkboxes on that link you posted8)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. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 10, 2007 Moderators Share Posted May 10, 2007 @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") Link to comment Share on other sites More sharing options...
EndFunc Posted May 14, 2007 Author Share Posted May 14, 2007 @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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now