| Login

Search this Blog


Links I like to keep around


Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Jan17

Written by:R Teachout
1/17/2007 2:15 PM 

Great script I found online.

Option Explicit

'to wait for the window "Setup Finish" to appare and press Alt n
'!NOTE! if there are more then one window with the same name it will not work, it will need more work!


dim WshShell, iLoopTimeWait
Set WshShell = WScript.CreateObject("WScript.Shell")
iLoopTimeWait = 500
Call Main()
Set WshShell = Nothing

Sub Main()
  Connect2Window iLoopTimeWait, "Setup Finish"
  WshShell.SendKeys "%n"
End Sub


Function  Connect2Window(iTime, sWindowName)
  Do until WshShell.AppActivate (sWindowName)
     WScript.Sleep iTime
  loop
End function

 

Found on http://www.msfn.org/board/index.php?showtopic=9171

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment  Cancel 

Old programmers never die. They just terminate and stay resident.
-Unknown

Inspired by Nina