Jump to content

Recommended Posts

Posted

Hi,

After WinSetState ( "windowname", "", @SW_HIDE) in the below script i want to display window(just like the task is processing) and that window should close when the whole task is completed.

How to do

 

Global $oIE=_IECreate($URL)
sleep (3000)

 Local $username =_IEGetObjByName($oIE,"username")
   Local $password = _IEGetObjByName($oIE,"password")
   Local $button = _IEGetObjByName($oIE,"login")
   _IEFormElementSetValue( $username,$user)
   _IEFormElementSetValue( $password,$pass)
   send ("{TAB}")
   send ("{TAB}")
WinSetState ( "windowname", "", @SW_HIDE)
WinWait("windowname")
ControlSend("windowname", "", "Internet Explorer_Server1", $user)
sleep (200)
send ("{TAB}")
ControlSend("windowname", "", "Internet Explorer_Server1", $pass)
sleep (200)
send ("{TAB}")
send ("{ENTER}")
sleep (3000)

TIA

Posted (edited)

Hi samanthupar,

  get the handle of the window using WinGetHandle first then you can do all of those things to it when and where you want.

Minimize maximize and then

WinKill or WinClose

Bill

edit:  but if this an IE window that you have opened with IECreate then use:

_IEQuit Edited by l3ill

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
×
×
  • Create New...