Visual DialogScript
Encyclopedia
Visual DialogScript is an interpreted
Interpreted language
Interpreted language is a programming language in which programs are 'indirectly' executed by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then 'directly' executed by the host CPU...

 programming language
Programming language
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely....

 for Microsoft Windows
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...

. It can be used to create small, fast programs. VDS has a large number of dialog and graphical elements available to create professional looking programs. VDS programs have access to the Windows API; therefore, it is possible to write applications that can perform the same advanced tasks as other programming languages such as Visual Basic
Visual Basic
Visual Basic is the third-generation event-driven programming language and integrated development environment from Microsoft for its COM programming model...

, C++
C++
C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. It was developed by Bjarne Stroustrup starting in 1979 at Bell...

, or Delphi
Delphi
Delphi is both an archaeological site and a modern town in Greece on the south-western spur of Mount Parnassus in the valley of Phocis.In Greek mythology, Delphi was the site of the Delphic oracle, the most important oracle in the classical Greek world, and a major site for the worship of the god...

.

Language

Unlike other programming languages, the syntax of VDS is very simple. Each command occupies one line, and has a plain English name that clearly describes its purpose. Variables are typeless, and can hold many kinds of information, for example, numbers or text. Functions are clearly distinguishable with names that start with '@', just like a spreadsheet.

The DialogScript language has a simple syntax not unlike MS-DOS batch language. It is designed for ease of use and efficiency when being interpreted by the run-time engine. There are 10 system variables, %0 to %9, which initially have the script file name in %0 and command line parameters in %1 through %9, just as in a batch file. There are also a further 26 user variables, %A to %Z. The contents of all variables (including system ones) can be changed once the script is running. There are now also 4032 global variables. These variables begin with %%, a letter, then alphanumerics plus underscores (e.g. %%my_variable_1.) There is no limit on the length of these user-defined variable names.

Syntax Examples

Comments:
  • # This is a single line comment
  • REM This is a single line comment


Simple Information Message Box:
  • info "This is the information text"


Simple Warning Message Box:
  • warn "This is the warning text"


Create a custom dialog box:
  • dialog create,<name>,<top pixel position>,<left pixel position>,<width in pixels>,<height in pixels>


Write to the Windows Registry:
  • registry write,<root key>,<key>,<subkey>,<data>


Display an input prompt dialog box, storing the result in the variable %A:
  • %A = @input("Please enter a value:")

History

Visual DialogScript was originally created by Julian Moss of JM-Tech. Eventually, S.A.D.E. s.a.r.l., a French company, took over ownership and development of VDS, altering and improving upon its syntax. Currently, VDS is owned and developed by the British company Commercial Research Ltd.

Several versions of VDS have been released over time:
  • Visual DialogScript 2.0
  • Visual DialogScript 2.5
  • Visual DialogScript 3.0
  • Visual DialogScript 3.5
  • Visual DialogScript 4
  • Visual DialogScript 4.5
  • Visual DialogScript 5
  • Visual DialogScript 5.01
  • Visual DialogScript 5.02
  • Visual DialogScript 6

Currently Available Versions

There are several versions available for download:
  1. Personal Visual DialogScript (PVDS) 4: This freeware version is intended for students and home PC users. The package includes a short tutorial and full online help which includes many example scripts. The software is not licensable for commercial use. This version is incapable of producing compiled executable files; however, compiling files is not necessary, as a script file can be executed directly by opening it from Windows Explorer
    Windows Explorer
    This article is about the Windows file system browser. For the similarly named web browser, see Internet ExplorerWindows Explorer is a file manager application that is included with releases of the Microsoft Windows operating system from Windows 95 onwards. It provides a graphical user interface...

     on any system that has PVDS installed on it.
  2. Visual DialogScript 2.5 (16-Bit Edition): This version marked the last release for Windows 3.1+ (16-bit).
  3. Visual DialogScript 5: This version is for power users, business users, and professional developers who use—or are developing scripts for—Windows 95/98/ME or Windows NT/2000/XP. This version can create compiled executable files, and includes a royalty-free run-time license (once registered). Additional features include an icon editor and support for many add-on extensions. As a 32-bit program, it supports long filenames, task bar tray icons, unlimited length strings and string lists and the Windows Registry. This legacy version is now available for download for registered users and is not available for purchase.
  4. Visual DialogScript 6: The newest version of Visual DialogScript improves upon Visual DialogScript 5 and adds full support for Windows Vista
    Windows Vista
    Windows Vista is an operating system released in several variations developed by Microsoft for use on personal computers, including home and business desktops, laptops, tablet PCs, and media center PCs...

    . Additionally, the registered version can now create standalone compiled executable files that do not require an external runtime file.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK