hi

in my script i open a msgbox during a operation. How can i close it ? I've
try sendkeys "{enter}" but nothing happens

my code

MsgBox "hi",vbQuestion + vbOkOnly + vbApplicationModal + 0,"done"
wscript.sleep 200
wshshell.sendkeys "{enter}"

is ther a other solution to display a text on screen and close it.This
message is just a information in my script process

thanks for your help

nb : sorry for my bad english

Re: close a msgbox 1 by Torgeir

Torgeir
Sat Jun 19 15:58:22 CDT 2004

cybertiti wrote:
> hi
>
> in my script i open a msgbox during a operation. How can i close it ? I've
> try sendkeys "{enter}" but nothing happens
>
> my code
>
> MsgBox "hi",vbQuestion + vbOkOnly + vbApplicationModal + 0,"done"
> wscript.sleep 200
> wshshell.sendkeys "{enter}"
>
> is ther a other solution to display a text on screen and close it.This
> message is just a information in my script process
Hi

The Popup method is maybe an option, example showing the
message for 1 second:

Set wshshell = CreateObject("WScript.Shell")
wshshell.Popup "hi", 1, "done"


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx