Written by:R Teachout1/17/2007 2:15 PM
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, iLoopTimeWaitSet WshShell = WScript.CreateObject("WScript.Shell")iLoopTimeWait = 500 Call Main()Set WshShell = NothingSub Main() Connect2Window iLoopTimeWait, "Setup Finish" WshShell.SendKeys "%n"End SubFunction Connect2Window(iTime, sWindowName) Do until WshShell.AppActivate (sWindowName) WScript.Sleep iTime loopEnd function Found on http://www.msfn.org/board/index.php?showtopic=9171
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, iLoopTimeWaitSet WshShell = WScript.CreateObject("WScript.Shell")iLoopTimeWait = 500 Call Main()Set WshShell = NothingSub Main() Connect2Window iLoopTimeWait, "Setup Finish" WshShell.SendKeys "%n"End SubFunction Connect2Window(iTime, sWindowName) Do until WshShell.AppActivate (sWindowName) WScript.Sleep iTime loopEnd function
Found on http://www.msfn.org/board/index.php?showtopic=9171
0 comments so far...