WintextCom Utilities > The WintextCom Scripter > Command Line Syntax  >

A Simple Popup with an OK Button

Last updated: 06/09/2010 15:37:43 GMT
Print (Alt+1) Previous (Alt+P) Beginning of ChapterNext (Alt+N)

To display a standard Windows message box, put a question mark as the first command line parameter to "wtscript", followed by the desired title of the window as the second command line parameter, and the text of the information as the third:

 

"wtscript.exe ? Title Text".

 

"Title" and "Text" must be in quotes if they contain spaces.

 

When you call "wtscript" from a script with this specification, a message box appears and the script will usually stop executing until you click the OK button, or press ENTER or ESC. However, it is usually possible to allow the script to continue, without waiting for the message box to be dismissed; for example, beginning the command line with "start" in a batch or .cmd file will have this effect.

 

You can create a more customisable message box and retrieve the user's response with S.W.H.-Wintextware's Request Information utility, "wtreqinfo.exe".

 


Page url: http://wtcmanual.wintextware.com/index.html?lps_displayingamessagebox.htm