Jump to content
Sign in to follow this  
epicfail

FF.au3 login help

Recommended Posts

epicfail

hi how do i change this IE.au3 code to work with the FF.au3

$oIE = _IECreate ("http://www.mysite.com")
    $HWND = _IEPropertyGet($oIE, "hwnd")
    WinSetState($HWND, "", @SW_MAXIMIZE)
    _IELoadWait ($oIE)
    $oform = _IEFormGetObjByName($oIE, "formName")
    $oQuery = _IEFormElementGetObjByName($oform, "email")
    $o_Query = _IEFormElementGetObjByName($oform, "pass")

    $username = GUICtrlRead($Input1)
    $password = GUICtrlRead($Input2)

    _IEFormElementSetValue($oQuery, $username)
    _IEFormElementSetValue($o_Query, $password)

    _IEFormSubmit ($oForm)

Share this post


Link to post
Share on other sites
epicfail

dont worry i think i have worked it out.

#Include <FF.au3>

    $username = GUICtrlRead($Input1)
    $password = GUICtrlRead($Input2)


    _FFStart("www.mysite.com")

    $emailinput = _FFObjGet("email", "name")
    $passwordinput = _FFObjGet("pass", "name")
    _FFObj($emailinput, "value", $username)
    _FFObj($passwordinput, "value", $password)
    _FFFormSubmit("formName", "name", "submit")
Edited by epicfail

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.