; Whne WinBatch is executed without any parameters, it attempts to locate
; and execute this DEFAULT.WBT file.
IntControl(29, @TAB, 0, 0, 0) ; standardize on tab delimters
list1="WinBatch AboutBox"
action1="vers"
list2="System Information"
action2="sysinfo"
list3="WinBatch Help File"
action3="wbhelp"
list4="WIL Help File"
action4="wilhelp"
list5="Tutorial"
action5="tutorial"
list6="Language Changer"
action6="language"
list7="NWCalls Diagnostics"
action7="nwcalls"
list8="Ctl3D Diagnostics"
action8="ctl3d"
list9="Remove license Info"
action9="remlic"
list10="Uninstall WinBatch"
action10="remove"
list11="Track Mouse co-ordinates"
action11="mickey"
list12="Determine Owning EXE file"
action12="owner"
list13="Run a WBT file"
action13="runwbt"
;- - -
gosub initial
query=list1
for xx=2 to 100
if IsDefined(list%xx%)
query=strcat(query,@tab,list%xx%)
else
break
endif
next
while 1
ask987=AskItemList("Running Default.wbt : Choose an option",query,@tab,@unsorted,@single)
if ask987=="" then break
xx987=ItemLocate(ask987,query,@tab)
action=strlower(action%xx987%)
gosub %action%
endwhile
exit
;- - - - - - - - - - - - -
:remlic
a=AskYesNo("WinBatch Unlicensing","Pressing YES will remove WinBatch and Compiler license information from your system.%@crlf%Do you wish to continue?")