Sunday, November 23, 2008

v7.80.0021 - 2008-11-23 11:06

  • + Scripting got a new command.
      Name:   End
      Action: Terminate a running script.
      Syntax: end condition, [message], [scope=0]
        condition: if False (0) then the script is ended
                   else nothing happens
        [message]: message before ending
        [scope]:   0: [default] end whole script stack
                   1 (or any other value): end this script
        ::end 1==1; msg "Still here!"; //"Still here!"
        ::end 1==2; msg "Still here!"; //ends silently
        ::end 1==2, "Bye!"; msg "Still here!"; //"Bye!"
  • + Scripting got a new function.
      Name:   GetToken
      Action: Returns a substring by index.
      Syntax: gettoken(string, [index=1], [delimiter=" "])
        string:    source string; not changed by procedure
        index:     [opt.] index of token, 1-based; defaults to 1
        delimiter: [opt.] separator of tokens; defaults to " "
        ::echo gettoken("Donald Duck"); //Donald
        ::echo gettoken("a,b,c,d,e", 4, ","); //d
        ::echo gettoken("", 2, "//"); _
  • * TitlebarTemplate: Added new field which is set to the current folder (without path).
  • ! Mini Tree: You could get doubled subfolders due to a little glitch in the logic. Fixed.