sumanthupar Posted January 17, 2014 Share Posted January 17, 2014 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 More sharing options...
l3ill Posted January 17, 2014 Share Posted January 17, 2014 (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 January 17, 2014 by l3ill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
l3ill Posted January 17, 2014 Share Posted January 17, 2014 Actually most of your commands could be be replaced with one of the many IE Functions available. My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now