Tyw214 Posted April 27, 2012 Posted April 27, 2012 (edited) HTML<form name="variations"> <input type="checkbox" name="pv__5_30" id="id_pv__5_30" /> </form>How do you check that box? Edited April 27, 2012 by Tyw214
DW1 Posted April 27, 2012 Posted April 27, 2012 #include <IE.au3> $oIE = _IEAttach('test') $oForm = _IEFormGetObjByName($oIE, 'variations') $oCheckBox = _IEFormElementGetObjByName($oForm, 'pv__5_30') _IEAction($oCheckBox, 'click') You will need to change "test" in _IEAttach() of course. AutoIt3 Online Help
Tyw214 Posted April 27, 2012 Author Posted April 27, 2012 Ah... so can't use that function altogether lol... seems kind of defeat the purpose ;p
DW1 Posted April 27, 2012 Posted April 27, 2012 Ah... so can't use that function altogether lol... seems kind of defeat the purpose ;p #include <IE.au3> $oIE = _IEAttach('test') $oForm = _IEFormGetObjByName($oIE, 'variations') _IEFormElementCheckBoxSelect($oForm, 0, 'pv__5_30', 1, 'byIndex') AutoIt3 Online Help
Tyw214 Posted April 27, 2012 Author Posted April 27, 2012 #include <IE.au3> $oIE = _IEAttach('test') $oForm = _IEFormGetObjByName($oIE, 'variations') _IEFormElementCheckBoxSelect($oForm, 0, 'pv__5_30', 1, 'byIndex') How does the byIndex work? Is it index'd from the top of the form? Or index'd by the element defined by the 'pv___5_30'?
DW1 Posted April 27, 2012 Posted April 27, 2012 It is indexed by the element name or id specified in 'pv__5_30' AutoIt3 Online Help
Tyw214 Posted April 27, 2012 Author Posted April 27, 2012 It is indexed by the element name or id specified in 'pv__5_30'tyvm!
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