Jump to content

How can I do?


Hing
 Share

Recommended Posts

Dear all,

How can use au3 click on the two Btns for New Window?

I used "_IEImgClick" and "_IENavigate", so can't do it...

The two btns html code:

<tr height='26'><td style='cursor:hand; padding-left:20px' class='size15' onmouseover="this.style.backgroundColor='#E0F6F1';" onmouseout="this.style.backgroundColor='';">
        <form target=_blank method=post action='http://www.co.com/forums/depts.php' onsubmit='return check_timeout();'>
        <input type=hidden name=ENCRYPTION value=original>
        <input type=hidden name=LOGIN_USERNAME value='0000001'>
        <input type=hidden name=LOGIN_PASSWORD value='58d48a6d8e153c8e35a48a6v8ety48fhj'>
        <input type=hidden name=textmode value='0'>
        <input type=submit name=submit value='Dept Forum'>
        </form>
        </td></tr>  <tr height='26'><td style='cursor:hand; padding-left:20px' class='size15' onmouseover="this.style.backgroundColor='#E0F6F1';" onmouseout="this.style.backgroundColor='';">
    <form target=_blank method=post action='http://www.co.com/forums/contact_us.php' onsubmit='return check_timeout();'>
    <input type=hidden name=ENCRYPTION value=original>
    <input type=hidden name=LOGIN_USERNAME value='0000001'>
    <input type=hidden name=LOGIN_PASSWORD value='58d48a6d8e153c8e35a48a6v8ety48fhj'>
    <input type=hidden name=textmode value='0'>
    <input type=submit name=submit value='Contact Us'>
    </form>
    </td></tr>
            </table>
            <br>
        </td>
    </tr>     
    </table>

Pls help me~~

Link to comment
Share on other sites

I have try used _IEFormGetCollection, but can't click the button

#include <IE.au3>

$oIE = _IEAttach("The title")

    $oForm = _IEFormGetCollection ($oIE, 1);0 = 1st form
    MsgBox(0, "Form Info", $oForm.name & @CR & $oForm.action)
    _IEAction ($oForm, "click")
Edited by Hing
Link to comment
Share on other sites

I have try used _IEFormGetCollection, but can't click the button

#include <IE.au3>

$oIE = _IEAttach("The title")

    $oForm = _IEFormGetCollection ($oIE, 1);0 = 1st form
    MsgBox(0, "Form Info", $oForm.name & @CR & $oForm.action)
    _IEAction ($oForm, "click")

Hi,

have you tried:

_IESubmit ($oForm)

;-))

Stefan

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