WScript.Shell.Popup has an undocumented value for the nType parameter which causes the resulting dialogs/popups to “stay on top” / in foreground, meaning that they cannot be hidden by other windows or dialogs: 4096.
JScript example:
WScript.CreateObject(“WScript.Shell”).Popup(“Message”, 0, “Title”, 4096);
VBScript example:
WScript.CreateObject(“WScript.Shell”).Popup “Message”, 0, “Title”, 4096
March 23, 2011 at 3:33 am |
terrific, thanks a lot!
January 17, 2012 at 7:51 pm |
thanks man, this helped a bunch
September 6, 2012 at 9:38 am |
Thanks it helped me too
June 9, 2014 at 12:51 pm |
Exactly what I needed. Thanks a lot man.
August 21, 2014 at 7:47 am |
Thanks mate in powershell just use
$wshell = New-Object -ComObject Wscript.Shell
$wshell.Popup(“Work Done”,0,”Done”,4096)
August 21, 2014 at 8:12 am |
Nice, thank you for sharing that. 🙂