...

View Full Version : WshShell Script



crono.Serge
10-30-2007, 11:01 PM
I'm trying to make a message box pop up to let a person know that there task is complete. Is there anyway to close a popup box with sendkeys?

Here's what I have so far



set WshShell = WScript.CreateObject("WScript.Shell")

WScript.Echo "Process Complete!"
WshShell.Sendkeys "{TAB}"
WScript.Sleep 100
WshShell.SendKeys "~"


The only thing is, it doesn't do anything. It doesn't hit enter to close the box, only once the box is closed is then enter is hit. Why, I don't have the foggiest.

Oh, and is there a "Windows Key" SendKeys equivalent?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum