Jump to content

FF.au3 login help


epicfail
 Share

Recommended Posts

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)
Link to comment
Share on other sites

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