Sign in to follow this  
Followers 0
ripvtech

Need Help Using Ie.au3 Udf

7 posts in this topic

Hello all, I am trying to click the delete button in Craig's List and I feel I'm doing something horribly wrong :)

$o_Form_Delete = _IEFormGetNameByIndex($o_IE, 0)
    $odel = _IEFormElementGetObjByIndex($o_Form_Delete, 1)
    $odel.click

The page I'm on is the page you get to when your logged into your account and you click the link for one of your listings and it gives you a page with two buttons (Delete, Edit) and a description of your post.

Any help would be great! This is my first post and I am a newb to AutoIT so please go easy on me :(

Thank you,

~JD

Share this post


Link to post
Share on other sites



Hello all, I am trying to click the delete button in Craig's List and I feel I'm doing something horribly wrong :)

$o_Form_Delete = _IEFormGetNameByIndex($o_IE, 0)
    $odel = _IEFormElementGetObjByIndex($o_Form_Delete, 1)
    $odel.click

The page I'm on is the page you get to when your logged into your account and you click the link for one of your listings and it gives you a page with two buttons (Delete, Edit) and a description of your post.

Any help would be great! This is my first post and I am a newb to AutoIT so please go easy on me :(

Thank you,

~JD

The first thing I see is that you are using the functions wrong.

This returns the name of the form rather than a reference to it.

_IEFormGetNameByIndex

If you could post the source of the page it would be easier to help.

Share this post


Link to post
Share on other sites

The first thing I see is that you are using the functions wrong.

This returns the name of the form rather than a reference to it.

_IEFormGetNameByIndex

If you could post the source of the page it would be easier to help.

Attached is a text file with the html for the page.

Thank you,

~JD

Share this post


Link to post
Share on other sites

You will need the latest version of IE.au3

; this is the form with the delete button
$oForm = _IEFormGetCollection ( $oIE, 0 )
_IEFormSubmit($oForm)

; this is the form with the edit button
$oForm2 = _IEFormGetCollection ( $oIE, 1 )
_IEFormSubmit($oForm2)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

You will need the latest version of IE.au3

; this is the form with the delete button
$oForm = _IEFormGetCollection ( $oIE, 0 )
_IEFormSubmit($oForm)

; this is the form with the edit button
$oForm2 = _IEFormGetCollection ( $oIE, 1 )
_IEFormSubmit($oForm2)
YOU ARE THE MAN!!!!!

Thank you, Is there any way to "rep" on these forums?

~JD

Edited by ripvtech

Share this post


Link to post
Share on other sites

YOU ARE THE MAN!!!!!

Thank you, Is there any way to "rep" on these forums?

~JD

No problem, glad I could help!

Is there any way to what?

Share this post


Link to post
Share on other sites

No problem, glad I could help!

Is there any way to what?

"rep" a lot of the forums I go to you can give people reputation points for feedback.

I wasn't sure if that was a feature used on this forum

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