Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<IE.au3>
- $sUsername = "Username"
- $sPassword = "Password"
- $sUrl = "https://saec.consiglog.com.br/Login.aspx"
- $oIE = _IECreate($sUrl, 0, 1, 0, 1)
- Sleep(2000)
- $oHWND = _IEPropertyGet($oIE, "hwnd")
- WinSetState($oHWND, "", @SW_MAXIMIZE)
- $oForm = _IEFormGetCollection($oIE, 0)
- $oUsername = _IEFormElementGetObjByName($oForm, 'txtLogin')
- $oPassword = _IEFormElementGetObjByName($oForm, 'txtSenha')
- _IEFormElementSetValue($oUsername, $sUsername)
- _IEFormElementSetValue($oPassword, $sPassword)
- _IEFormSubmit($oForm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement