Jump to content

Need Help Using Ie.au3 Udf


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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

Link to comment
Share on other sites

  • Moderators

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)
Link to comment
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)
YOU ARE THE MAN!!!!!

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

~JD

Edited by ripvtech
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...