drig0

iexplorer + hide

9 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Olhe para o parâmetro $ iVisible de _IECreate.

I'm trying to use these parameters ..


could give me a sample of how it should be?
thank you

Share this post


Link to post
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   
---------------------------

Share this post


Link to post
Share on other sites

:sweating:

Share this post


Link to post
Share on other sites

_IEAction($oIe, "visible")

Thank you very very much sor:D:D:lmao:

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