SC: Is there a command for MDBU?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

SC: Is there a command for MDBU?

Post by Filehero »

Hi,

never thought this could have been disregared by now, but I feel :? .

Is there any SC way I can trigger an image preview?


Thanks,
Filehero

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC: Is there a command for MDBU?

Post by Filehero »

Or ist there any way to trigger an (internal) image preview from a CC?

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: SC: Is there a command for MDBU?

Post by klownboy »

Hi FileHero, are you talking about any kind of preview or specifically a MDBU preview? You can of course use cid #178 on the current file for a floating preview or #1003 for a full screen preview. I don't know of any way to simulate a MDBU though it might be a nice idea. You could use TheQwerty's ItemUnderMouse script and take it one step further and simulate a mouse click. That script work just great if/when the mouse is over the thumbnail itself not just the file name which means it's great for triggering an action on a thumbnail. You can also use other image programs like ImageEye to bring up a picture for so many seconds and automatically close.

Code: Select all

"Quik Pic|D:\Graphics\Image Eye\Image Eye.exe" png;ico>::openwith "D:\Graphics\Image Eye\Image Eye.exe" "<pfaitem>" "-zoom=1";wait 1500;run "D:\Graphics\Image Eye\Image Eye.exe" "-close";
Again though, it might be a nice idea to have an SC for MDBU with flags for full and fit to screen and a parameter for seconds.
Take care,
Ken

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC: Is there a command for MDBU?

Post by Filehero »

Hi Ken,

I knew you were replying. :wink:
klownboy wrote:Hi FileHero, are you talking about any kind of preview or specifically a MDBU preview?
In order to enrich my gpx-file collections with additional information I would like to trigger XY's MDBU from a CC to show a specific image with the track on a map.

Of course, using an external viewer would be my last resort. Indeed, Image Eye looks interesting -> I will give it a test go using your snippet. Thanks for hint and code. :D

<background>My tools/utilities list has become much too long by now. Sometimes I spent more time on keeping those updated than on using them. Yes, this used to be my hobby ( :mrgreen: ), but spare time keeps running low. So, staying inside XY's boundaries is prefered.<background>

Cheers,
Filehero

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: SC: Is there a command for MDBU?

Post by klownboy »

Yes, it is indeed better to be able to use XY for as many tasks as possible without resorting to other programs, but then again you can't expect it to do everything. :) ImageEye has a nice clean interface and is very lean and fast. You can configure it to look much like a MDBU with only a very thing black border. I have a CC which uses it as well...the snippet.

Code: Select all

Snip: CustomColumn 1
  XYplorer 14.80.0236, 2/23/2015 7:46:52 AM
Action
  ConfigureColumn
Caption
  Vu
Type
  3
Definition
  open "D:\Graphics\Image Eye\Image Eye.exe" "<cc_item>" "-zoom=.7";
  wait 1500;
  run "D:\Graphics\Image Eye\Image Eye.exe" "-close";
Format
  0
Trigger
  2
Item Type
  0
Item Filter
  gif;ico;jpg;png
Notice how you can also control the amount of zoom. I have another "mixed" column called "Run" that uses this CC and another one for playing music or video.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: SC: Is there a command for MDBU?

Post by TheQwerty »

Filehero, can you elaborate on what it is you're actually trying to do?

Unless you have an extension that allows you to preview the GPX nicely, I'm assuming you are actually trying to create a preview by generating a map with the GPX data overlays.

If I'm correct then I think you'll either have to create a new file and preview that, or show the preview in an HTML dialog - which you might be able to achieve in a manner similar to the Preview Code script by using something like gpxviewer.

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC: Is there a command for MDBU?

Post by Filehero »

Hi TheQwerty,
TheQwerty wrote:Filehero, can you elaborate on what it is you're actually trying to do?
sure, though I'm afraid it's more trivial than it sounds.
TheQwerty wrote:Unless you have an extension that allows you to preview the GPX nicely, I'm assuming you are actually trying to create a preview by generating a map with the GPX data overlays.
Exactly, this is what I want to end with - some day, ahem.

Last year I started my experimental project "XY as my gpx-file suite". As a fun project I try to "manage" my gpx logs with XY (and some public apis) only. Here you can see where I got so far (generating side car files, creating sums per log folder) - and where I'm stuck for some months now. :mrgreen:

Until I get there (which unfortunately can easily take another undefined heaps of time) I simply upload the gpx logs to some page and save a local copy of the screenshot with the map overlay. The images are currently saved with their sibling gpx files, but I want to move them somewhere else and trigger their MDBU by clicking onto a corresponding CC cell.

So, inspired by you and Ken -> Next I will write a little preview snippet using either HTML rendering and Image Eye, with one ending up as my "transient" static approach.
TheQwerty wrote:gpxviewer.
This was one of my 1st hits I got back last year, unfortunately it's from my prefered Royal Evilness Google. :whistle: But thanks for the link.

When continuing the dynamic approach I want to restart at http://www.outdooractive.com/en/. As far as I coud find out they have something like an api, their maps are good (have licensed them on my mobile phone). But I haven't yet asked for the license terms etc.. But time .... :(


Cheers,
Filehero

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: SC: Is there a command for MDBU?

Post by bdeshi »

Filehero wrote:In order to enrich my gpx-file collections with additional information I would like to trigger XY's MDBU from a CC to show a specific image with the track on a map.
the coffeemaker also previews images... http://www.xyplorer.com/xyfc/viewtopic. ... 42#p102807
[code]makecoffee [image],[scale],[x in pane],[y in pane]; wait 5000; makecoffee "";[/code][although scale doesn't seem to work]
[ed: outdated]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: SC: Is there a command for MDBU?

Post by TheQwerty »

SammaySarkar wrote:

Code: Select all

makecoffee [image],[scale],[x in pane],[y in pane]; wait 5000; makecoffee "";
[although scale doesn't seem to work]
v13.90.0107 - 2014-04-12 11:37

Code: Select all

v13.90.0107 - 2014-04-12 11:37
. . .
    * SC makecoffee redesigned. No more stretchfactor, but now you can pass a 
      limiting box where the image will be proportionally shrunk to fit if it is 
      too large (note that it will not be enlarged to fill the box if it is 
      smaller).
      Syntax: makecoffee [file], [x], [y], [maxwidth], [maxheight]
        x:    X position; randomized if missing
        y:    Y position; randomized if missing
        maxwidth:   maximum width to fit
        maxheight:  maximum height to fit
      Notes:
        Arguments "maxwidth" and "maxheight" are only applied if "file" is 
        passed.
      Example:
        makecoffee "<xyscripts>\katy.png", , , 200, 150;
My personal file of undocumented things didn't have this, so I missed the change as well. ;)

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: SC: Is there a command for MDBU?

Post by Filehero »

Wouldn't ever thought that makecoffee could be of any real help. :wink:
Better: :appl:

Thanks for the pointer.

FH

Post Reply