Sunday, September 21, 2008

v7.60.0022 - 2008-09-21 21:48

  • + Tweak: Getting tired of typing "::" into the Address Bar when debugging script lines I added this little tweak:
      [Settings]
      ScriptSmartDetect=1
    Whenever the Address Bar content matches this:
      (not a full path) AND (has ; anywhere) AND
      (1st char != ?) AND (1st char != )
    it is interpreted as script, not as location. This allows Quick Searches like ?gif;png and Visual Filters like gif;png, and recognizes scripts even with line-end comments, like:
      echo ("0" > "")?"True":"False"; //True
    Works for me.
    + Scripting got a new function.
      Name:   Eval
      Action: Evaluate an expression.
      Syntax: eval(expression)
      Examples:
      - $a = "1 + 1";
        echo $a;       //1 + 1
        echo eval($a); //2
      - $a = '<xypath>';
        echo $a;       //<xypath>
        echo eval($a); //C:\Progs\XYplorer
      - // Little calculator
        input $math, "Paste your math:", "1+1";
        echo "The result is: " . eval($math);
  • - Scripting: removed SC "try". Reason: superfluous.
  • * Menu Scripting | Try Script...: Now step mode is always auto-enabled (if not enabled anyway) when you run a script from the Try window. The previous state is restored when done.
  • ! Scripting: Would not parse ::msg"Hi!" correctly. Fixed.
  • ! Scripting: Would forget to reenable stepmode after finishing a script under certain cnditions. Fixed.