NSearch Posted December 19, 2005 Posted December 19, 2005 This is the 3 form on the page, so I am using: $form_objects = _IEFormGetObjByIndex($oIE, 2) Then trying $o_Submit = _IEFormElementGetObjByName($form_objects, "Number_Selected") _IEClickImg($o_Submit, "/img/1.gif", "src", 0) But I can not get the image to "click". Can anyone see what I am doing wrong. Thanks. Source code snippet input alt="Number Selected" border="0" src="/img/1.gif" name="Number_Selected" type="image" height="1" width="1">
Valuater Posted December 19, 2005 Posted December 19, 2005 (edited) 1 i use this example to "test" that i found what i want #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "http://www.autoitscript.com/") $body = _IEBodyReadHTML($oIE) If StringInStr($body, "automation") Then MsgBox(0, "Success", "The string was found") endif 2 i notice the example says to click from the "object" name not the "$o_Submit" you used and no sub-directory ; Create a new browser window and navigate to a page $oIE = _IECreate() _IENavigate($oIE, "http://autoitscript.com") ; Click on liks to navigate to the v3 Support forum _IEClickLinkByText($oIE, "forum") _IEClickLinkByText($oIE, "v3 Support") ; Click on the NewTopic button _IEClickImg($oIE, "Start new topic", "alt"); here not enough info here ( or knowledge in my head ) to help much for.. dale will probable see this post and give advise good luck 8) Edited December 19, 2005 by Valuater
seandisanti Posted December 19, 2005 Posted December 19, 2005 This is the 3 form on the page, so I am using: $form_objects = _IEFormGetObjByIndex($oIE, 2) Then trying $o_Submit = _IEFormElementGetObjByName($form_objects, "Number_Selected") _IEClickImg($o_Submit, "/img/1.gif", "src", 0) But I can not get the image to "click". Can anyone see what I am doing wrong. Thanks. Source code snippet input alt="Number Selected" border="0" src="/img/1.gif" name="Number_Selected" type="image" height="1" width="1">have you tried: _IEFormSubmit($form_objects)
NSearch Posted December 19, 2005 Author Posted December 19, 2005 Darnit....I have been using that in all of my other code. I should have tried it. Yes it works. Thanks cameronsdad! I figured since it was an image, and not named submit that it wouldnt. But it does. Thank you...on to the next segment. Thanks again.
seandisanti Posted December 19, 2005 Posted December 19, 2005 Darnit....I have been using that in all of my other code. I should have tried it. Yes it works. Thanks cameronsdad! I figured since it was an image, and not named submit that it wouldnt. But it does. Thank you...on to the next segment.Thanks again.no problem, glad i could help.
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