Page 5 of 5

Re: SC Command ::Make...

Posted: 13 Apr 2014 22:47
by SkyFrontier
Left click: have some images (full path, CRLF-separated) at clipboard as source for the script.
-images will appear but at the end of execution they won't stay displayed.

Right click: have some images selected at list.
-all boxed images will stay at the end of execution.

Code: Select all

    Snip: CTB 1
      XYplorer 13.90.0104, 2014.04.10. 22:53:55
    Action
      NewUserButton
    Name
      Clean Recent
    Icon
      :mru
    ScriptL
      $re = "";
      $x = 180;
      $y = 50;
      $max = 5;

      $x1 = $x;
      $y1 = $y;
      #485; //refresh list, cleaning up screen from any previous artifacts

      $a = <clipboard>; // alternatively
      //   $a = get(selecteditemspathnames); // alternatively
      $a = $a; //attempt to fix
      foreach($tk, "$a", <crlf>) {

                              $ctrl++;
                              IF($ctrl > $max) { $x = $x1; $y = $y + 60; $ctrl = 0; }
                              ELSE {   }
                              $x = $x + 80;

      // step;
                              makecoffee "$tk", $x, $y, 50, 50;
       wait 500;

                              }
    ScriptR
      $re = "";
      $x = 180;
      $y = 50;
      $max = 5;

      $x1 = $x;
      $y1 = $y;
      #485; //refresh list, cleaning up screen from any previous artifacts

      //$a = <clipboard>; // alternatively
      $a = get(selecteditemspathnames); // alternatively
      //$a = $a; //attempt to fix
      foreach($tk, "$a", <crlf>) {

                              $ctrl++;
                              IF($ctrl > $max) { $x = $x1; $y = $y + 60; $ctrl = 0; }
                              ELSE {   }
                              $x = $x + 80;

      // step;
                              makecoffee "$tk", $x, $y, 50, 50;
       wait 500;

                              }
    FireClick
      1
Note:
parsed scripts are missing indentation in 13.90.0108.

Re: SC Command ::Make...

Posted: 14 Apr 2014 00:35
by klownboy
Don, thanks for the makecoffee positioning change (of mind). It might have started as a gimmick, but it's graduated to more than that now.

Re: SC Command ::Make...

Posted: 14 Apr 2014 17:46
by klownboy
Hi Don, I was setting up my laptop computer for a Custom Column using makecoffee and I wasn't able to display the pic using trigger "click". Finally (and I mean finally 'cause it took a while), I stumbled onto the fact that on the laptop I had "full row select" enabled in Tools | Customized List. When I disabled "full row select" the pic displayed just fine when I single clicked the "click" play button. I'm reporting it only because I'm not sure if it's a bug or not. It does appear a bit strange though that with full row select enabled you can "single" click to run a file or open file or folder by single clicking the icon yet you can't single click the click play button to run the script, in this case to display the file using makecoffee. I don't care one way or the other, I just figured I'd let you know.
Thanks
Ken

Re: SC Command ::Make...

Posted: 14 Apr 2014 18:45
by admin
Well spotted, thanks! Fix comes.

Re: SC Command ::Make...

Posted: 17 Apr 2014 18:14
by binocular222
How to show image at/relative to cursor position?
And rotation?

Re: SC Command ::Make...

Posted: 17 Apr 2014 23:45
by PeterH
binocular222 wrote:How to show image at/relative to cursor position?
And rotation?
Rotate your coffee? :shock: :shock:

It will flow into your monitor :veryconfused:

:P

Re: SC Command ::Make...

Posted: 18 Apr 2014 03:37
by binocular222
I will not rotate a coffee. I intend to mimic this thing: http://www.intelore.com/apaper/dstar.swf

Re: SC Command ::Make...

Posted: 20 Apr 2014 03:14
by binocular222
btw, makecoffee not support animated gif?
a hot coffee with mist raising (or a cigarret with smoke raising) would be sweet

Re: SC Command ::Make...

Posted: 25 Apr 2014 14:22
by admin
Let's stop here. It's just a little gag function (even if it can be useful).

Re: SC Command ::Make...

Posted: 06 May 2014 15:50
by klownboy
binocular222 wrote:makecoffee not support animated gif?
I know we've pretty much beat this thread to death, but I wanted to follow up on this comment because I stumbled across this capability in ImageEye. If you set up a PFA similar to this...

Code: Select all

"Quik Pic|D:\Graphics\Image Eye\Image Eye.exe" png;gif;jpg;ico>::load "D:\Tools\XYplorer\Scripts\QuikPic.xys"
and QuikPic.xys script similar to this...

Code: Select all

    openwith "D:\Graphics\Image Eye\Image Eye.exe" "-zoom=.5"; wait 2000;
        run "D:\Graphics\Image Eye\Image Eye.exe" "-close";
This will display the animated gif for a couple of seconds by single clicking on the file's icon and close it. If you hold down the control key with the single click the file will stay open in ImageEye. Change the zoom factor and time and associations as you'd like. It will display PNGs like makecoffee and animated GIFs - with no borders or backgrounds. You can actually put the little script directly in the PFA as long as you start it with ::

@binocular222, I know you (or anyone else for that matter) use, or did at one time use, ImageEye as a pic viewer since I found out about it from you on this forum. It is a great fast, free to use, no-nonsense viewer with a clean interface. Of course I'm using XYplorer the majority of the time, either in thumbnail view, MDBU or full screen preview, but I figured I'd pass this on since it provides a similar capability as "makecoffee".
Thanks,
Ken

Re: SC Command ::Make...

Posted: 07 May 2014 05:31
by binocular222
Oh yeah, Image Eye with multiple instance will beat makecoffee haha