Jump to content

iexplorer + hide


drig0
 Share

Recommended Posts

hello, I'm here but once with a doubt.

I'm doing a autologuin, I want the iexplorer  hidden, until the whole process is ready. and show at the end.
so I lack hide the window, because the rest is already ready, someone could give me a hand?

 

#RequireAdmin
#include <AutoItConstants.au3>
#include <ie.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()

$oIE = _IECreate ("https://www.hotmail.com/Login?")
WinSetState($oIE, "", @SW_HIDE)
$oForm = _IEFormGetObjByName ($oIE, "login-form")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "email")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "password")
$uname="teste@hotmail.com"
$pwd="123123"
_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjById($oIE,"login-form-contBtn")
$oButton2=_IEGetObjById($oIE,"RememberMe")
_IEAction ($oButton, "click")
_IEAction ($oButton2, "click")
 WinSetState($oIE , "", @SW_SHOW)
$iVisible = 1
sleep("5000")
_IELoadWait($oIE,5)
EndFunc

 

Edited by drig0
Link to comment
Share on other sites

Look at the $iVisible parameter of _IECreate.

error !!

 

---------------------------
AutoIt Error
---------------------------
Line 21  (File "C:\rodrigo\pste\prototipe.au3"):

$oIE = _IECreate ("https://www.hotmail.com/Login?" [$iVisible = 1])
$oIE = _IECreate ("https://www.hotmail.com/Login?" ^ ERROR

Error: Subscript used on non-accessible variable.
---------------------------
Aceptar   
---------------------------

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