Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

WSH - set focus (activation) to script dialog window

$
0
0

Hi guys,

very simple script that is used on users' machines when some SW needs to be installed. My problem is how to activate this dialog window because currently this window is just blinking on taskbar and user doesn' t note it ...

Set objShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 5000
iResponse = MsgBox ("RTD application needs to be updated", 1 + vbExclamation, "RTD update")
WScript.Sleep 1000
objShell.AppActivate "RTD update"
'objShell.AppActivate "wscript.exe"

many thanks for your tips & tricks :-)

Tomas


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>