Tuesday, March 27, 2012

JavaScript (Win32 CScript) -- Creating a MessageBox or Popup dialog

// creating a message box or popup dialog with windows command line

var oShell = WScript.CreateObject("WScript.Shell");
oShell.Popup(message, 0, title);

// syntax
// intButton = object.Popup(strText,[nSecondsToWait],[strTitle],[nType])
// http://msdn.microsoft.com/en-us/library/x83z1d9f(v=vs.85).aspx
//