Jump to content

Need help on dispalying processing window


Recommended Posts

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

Link to comment
Share on other sites

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