Monday, February 18, 2008

v6.80.0081 - 2008-02-18 11:36

  • + Scripting got a new command:
      - seltab
        Action: select a tab by position
        Syntax: seltab [position]
        Examples:
          ::seltab 1 = select the first (left-most) tab
          ::seltab   = select the default tab (if any)
          ::seltab + = select the next tab (wraps around)
          ::seltab - = select the previous tab (wraps around)

  • + UDC | Run Script: Now you can enter a multi-line script with comments (same style as in script files). Since the standard UDC textbox can only hold one line you have a new "Edit" button now by which you can open a larger textbox for your scripting.
    Even better: You can enter more than one multi-line script! In that case a menu pops up presenting the choices, just like when loading a script file. And you can use the "sub" command inside the script resource. So in short: UDC | Run Script is now a full alternative to script files. Note that you still can do one-liners as before.

  • + Scripting command enhanced:
      - write
        Now you can enter more than one script. In that case a menu
        pops up presenting the choices, just like when loading a
        script file. And you can use the "sub" command inside the
        script resource.

  • * Popping up menus from script resources: Now, if the menu would have only one item, this item will be called directly without presenting the menu first.
    For example, this script resource (paste it into a write-box) has only one visible script, the other two are invisible subs:
      "_Show date : date"
        msg <dyyyy-mm-dd>
      "_Show time : time"
        msg <dhh:nn:ss>
      "Show Date && Time : datetime"
        sub date;
        sub time
    When you run it, you will get the two msg boxes directly.

  • * For consistency's sake I added a #ID button to the CKS dialog that functions exactly as the one in the UDC dialog.

  • ! Scripting: Command "sel" could lead to a crash depending on the parameters (since yesterday). Fixed.