SC Command ::Make...

Features wanted...
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: SC Command ::Make...

Post 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.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

klownboy
Posts: 3121
Joined: 28 Feb 2012 19:27

Re: SC Command ::Make...

Post 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.

klownboy
Posts: 3121
Joined: 28 Feb 2012 19:27

Re: SC Command ::Make...

Post 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

admin
Site Admin
Posts: 50429
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: SC Command ::Make...

Post by admin »

Well spotted, thanks! Fix comes.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

binocular222
Posts: 1414
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: SC Command ::Make...

Post by binocular222 »

How to show image at/relative to cursor position?
And rotation?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

PeterH
Posts: 2598
Joined: 21 Nov 2005 20:39
Location: Germany

Re: SC Command ::Make...

Post 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
W7(x64) SP1 German
( +WXP SP3 )

binocular222
Posts: 1414
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: SC Command ::Make...

Post by binocular222 »

I will not rotate a coffee. I intend to mimic this thing: http://www.intelore.com/apaper/dstar.swf
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

binocular222
Posts: 1414
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: SC Command ::Make...

Post by binocular222 »

btw, makecoffee not support animated gif?
a hot coffee with mist raising (or a cigarret with smoke raising) would be sweet
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 50429
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: SC Command ::Make...

Post by admin »

Let's stop here. It's just a little gag function (even if it can be useful).
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

klownboy
Posts: 3121
Joined: 28 Feb 2012 19:27

Re: SC Command ::Make...

Post 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

binocular222
Posts: 1414
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: SC Command ::Make...

Post by binocular222 »

Oh yeah, Image Eye with multiple instance will beat makecoffee haha
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply