Sign in to follow this  
Followers 0
NSearch

Using _IEClickImg() Question

5 posts in this topic

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">

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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)

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0