Hi,
Using:
code:
$=sendkeys("~ n")
Working with Internet explorer that works for minimising the window.
Thanks
This is my final code...
code:
Break On
; Create application instance and open search page...
$oIE = CreateObject("InternetExplorer.Application")
$oIE.Visible=1
$oIE.Navigate("webmail.aschoolname.bristol.sch.uk")
; Wait for page to stop loading...
While $oIE.busy AND $oIE.readystate <> 4 AND @ERROR = 0 Loop
$oDoc=$oIE.document
; Form is not named, so identify the form with the relevant field...
For Each $oForm In $oDoc.forms
; Enter user ID
$oForm.userid.value="admin"
; If there is no error, then this is the right form
If @ERROR = 0
; Enter password
$oForm.password.value="{password}"
; Submit the form.
$oForm.submit.click
EndIf
Next
$oIE = 0
$=sendkeys("~ n")
Darren
[ 05. November 2002, 16:12: Message edited by: Darren ]
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.