Unlike labels, commands need not start in the first character position.  It is recommended that they are indented using spaces for readability. Commands are built into the DialogScript language, or may be added using extensions. DialogScript 5 also allows  user defined commands.  

A command consists of the command name (see Command Reference) followed optionally by a string.  The string is used as the argument (or parameters) to the command.  Many commands have only a single argument, but others have more than one, in which case commas are used to separate the parameters. A space must separate the command from the first parameter. Commands are not case-sensitive. 

Here are some examples of commands:

TITLE My first script

INIFILE WRITE,Reg_Info,UserName,Fred Bloggs

Strings may include variable and function references, which are evaluated before the command is carried out. 

Here is a list of the commands available in Visual DialogScript:

  • BEEP
  • BINFILE
  • BITMAP
  • BROWSER
  • CLIPBOARD
  • CONSOLE
  • COMM
  • DDE
  • DIALOG
  • DIRECTORY
  • ELSE
  • ELSIF
  • END
  • ERROR
  • EXIT
  • EXITWIN
  • EXTERNAL
  • FREELIB
  • FILE
  • FONT
  • GOSUB
  • GOTO
  • HOTKEY
  • HTMLHELP
  • ICOTOBMP
  • IF
  • IMAGE
  • INFO
  • INIFILE
  • KILLTASK
  • LINK
  • LIST
  • LOADLIB
  • OPTION
  • PARSE
  • PLAY
  • RANDOM
  • REGISTRY
  • REM
  • REPEAT
  • RUN
  • RUNH
  • RUNM
  • RUNZ
  • SEEKFILE
  • SHELL
  • SHIFT
  • STOP
  • TASKBAR
  • TIMER
  • TITLE
  • TRACE
  • UNTIL
  • WAIT
  • WEND
  • WARN
  • WHILE
  • WINDOW
  • WINHELP
  • WRITE
  • WRITELINE
  • XMLDOC