Running Dialog Scripts

 

The Dialog Editor saves dialog boxes with an extension of .WBT.

From within WIL scripts, .WBT files can be initiated using the Call command (See the WIL help for more information on Call). Remember to set your variables either in the script or at the top of the .WBT code.

 

Call("example.WBT", "")

 

With a little copying and pasting, a dialog box can be completely integrated into a WIL script. The Dialog Editor File/Save to Clipboard feature allows an easy way to put the code into the clipboard. Use the keyboard command 'Ctrl v' to paste the code into the script. The entire code can be placed at the point in the script at which it will be executed.

However, if the dialog box needs to be accessed multiple times, it is more efficiently utilized as a sub-routine. A GoSub command will send the WIL processing to the dialog sub-routine and return to the point of origin. (See the WIL help for more information on GoSub) Alternatively, execution of a dialog box will occur whenever the dialogs final statement is encountered in the script.

 

ButtonPushed = Dialog("mydialog",1)

 

 

Getting Started

Saving Dialog Scripts

Decipher the Script

Dialog Box Caption

Control Attributes

 

Example:
count = 1

miniFormat=`WWWDLGED,6.2` miniCaption=`Mini Example` miniX=236 miniY=106 miniWidth=124 miniHeight=073 miniNumControls=004 miniProcedure=`DEFAULT` miniFont=`DEFAULT` miniTextColor=`DEFAULT` miniBackground=`DEFAULT,DEFAULT` miniConfig=0 mini001=`017,051,034,014,PUSHBUTTON,"PushButton_OK",DEFAULT,"OK",1,1,DEFAULT,DEFAULT,DEFAULT,DEFAULT` mini002=`071,051,034,014,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"Cancel",0,2,DEFAULT,DEFAULT,DEFAULT,DEFAULT` mini003=`051,023,044,014,VARYTEXT,"VaryText_1",count,"*",DEFAULT,3,DEFAULT,DEFAULT,DEFAULT,DEFAULT` mini004=`011,003,086,014,STATICTEXT,"StaticText_1",DEFAULT,"Number of times run:",DEFAULT,4,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
ButtonPushed=Dialog("mini") count = count + 1
ButtonPushed=Dialog("mini",1) count = count + 1
ButtonPushed=Dialog("mini",1) Message("Mini Example", "Done")