Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: WshShell Script

  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WshShell Script

    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

    Code:
    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?
    Last edited by crono.Serge; 10-31-2007 at 12:02 AM. Reason: Update


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •