Wednesday, January 30, 2008

v6.80.0051 - 2008-01-30 12:01

  • * Scripting command "UserInput": changed name to "Input".
  • * Scripting command "Input": now, when you cancel the input dialog the current script is immediately ended.
  • + Indenting in script files now also supports tab characters: Have any number of tabs at the beginning of a line, and it will be appended (after trimming the tabs) to the previous line.
  • * Script files: Menu separators "-" now can be surrounded by any number of blanks (" - ") And are still recognized.
  • + Scripting got new commands:
      - InputFile
        Action: Sets a user variable to a file name that can be selected via the common Windows Open dialog.
        Syntax: inputfile [variable name], [path], [extension], [caption]
          - variable name:        required, anything goes, case matters
          - path:                 required, can be relative to app path
          - extension:            optional, just the extension, no dot
          - caption (for dialog): optional, anything goes
        Examples:
          ::inputfile $file, C:\, bat, Select Batch File
            = Presents dialog for opening *.bat files at C:\.
              If user selects a file, its full path/file name is set to user variable $file.
          ::inputfile $file, C:\Windows
            = Presents dialog for opening any file at C:\Windows.
          ::inputfile $file
            = Presents dialog for opening any file at app path.

      - InputFolder
        Action: Sets a user variable to a folder name that can be selected via the common Windows Browse For Folder dialog.
        Syntax: inputfolder [variable name], [path], [caption]
          - variable name:        required, anything goes, case matters
          - path:                 required, default initial path
          - caption (for dialog): optional, anything goes
        Examples:
          ::inputfolder $folder, C:\, Select Folder::copytext $folder

      - Set
        Action: Sets a user variable to fixed value.
        Syntax: set [variable name], [value]
          - variable name: required, anything goes, case matters
          - value:         required, anything goes
        Examples:
          ::set $year, 2008::copytext $year
            = Copies "2008" to the clipboard.

      - Unset
        Action: Unsets a user variable that was previously set by Set, Input, InputFile, or InputFolder.
        Syntax: unset [variable name]
          - variable name: required, should exist
        Examples:
          ::set $year, 2008::unset $year::copytext $year
            = copies "$year" to the clipboard
  • * Scripting command enhanced:
      - CopyText
        New Syntax: copytext [text], [a]
          text: required, anything goes
          a:    optional, if set text is appended
        Example:
          ::copytext Blah, a
            = append "Blah" to the clipboard