UDC Actions in Image Preview Window

Features wanted...
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

UDC Actions in Image Preview Window

Post by Enternal »

Perhaps it would be possible if UDC actions can be applied to images that are currently being previewed in the image preview.

For example:
Set Numpad 7 to "Copy to Desktop"
While previewing images, any images that I want to do future work on, I can just tap Numpad 7 and the image will be copied to Desktop.

The usefulness of this is that you would not need to close down the image preview (or switch focus if the image preview is set to a different monitor) to proceed to do any UDC on it.

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: UDC Actions in Image Preview Window

Post by FluxTorpedoe »

Unless I misunderstand you, that's already possible (although hidden).
It's even one of my favorite features of XY's preview!

- Open the preview
- CTRL + Right-Click in the preview
- Enable "Allow custom keyboard shortcuts in preview"
- Have fun!

Not only does this settings enable the use of shortcuts, but it also "focuses" the list in the background, so it knows which file is currently selected/focused. Hence you can do pretty much whatever you want with your scripts (e.g. my main use is to tag pictures while previewing them in slideshows).

Hope this helps, 8)
Flux

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

FluxTorpedoe wrote:Unless I misunderstand you, that's already possible (although hidden).
It's even one of my favorite features of XY's preview!

- Open the preview
- CTRL + Right-Click in the preview
- Enable "Allow custom keyboard shortcuts in preview"
- Have fun!

Not only does this settings enable the use of shortcuts, but it also "focuses" the list in the background, so it knows which file is currently selected/focused. Hence you can do pretty much whatever you want with your scripts (e.g. my main use is to tag pictures while previewing them in slideshows).

Hope this helps, 8)
Flux
:shock: :shock: :shock:

Thank you so much! That's exactly it! Both of these functions were what I was looking for!! :biggrin: :biggrin: :biggrin:

Don, why did you not say anything?! I waited 2 weeks and did not hear a thing so I was very convinced it was a feature not yet existed. It was only today when I looked through the detailed changelog after FluxTorpedoe's post that I found it!! Anyways, how come this is still a "tweak"?

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

Hmm... weird. It's not working. So I have "Copy to Desktop" assigned to Numpad 7. Whenever I pressed it during floating preview, nothing happens. Looking at the Status bar, it said "Numpad 7 pressed outside scope". So I'm guessing it does not support such features? Tagging seems to work fine.

EDIT: Fresh install work so something else in my settings is affecting the function it seems.

EDIT: Okay. Something is REALLY weird going on here. I traced it all the way down to udc.dat being the problem. "Copy to Desktop" is currently set to Numpad 7 and Command ID 1408. There is a Command ID 1400, 1401, 1402, 1403, 1404, 1405, 1407, 1408 (Copy to Desktop). As you can see, Command ID 1406 is nowhere to be found. Anyway, my problem with the "Numpad 7 pressed outside scope" was fixed simply be deleting "Copy to Desktop" and remaking it which now assigned Command ID 1406 that was missing. "Copy to Desktop" is now working perfectly within Floating Preview. What is going on :? . Don, if you're interested, I attached the udc.dat to this post.

Curious but "outside of scope" generally means that function is not supported right? For fun, I tried Ctrl+F7 (Copy To...) in the floating preview and it gives me that status.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66438
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC Actions in Image Preview Window

Post by admin »

Uaah, I have so many things on my table. Just let's see if it happens again.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

Aaargh it happened again. It seems to take effect after restarting. Steps to reproduce:

1. Clear all UDCs
2. Add a UDC that "Copy to Desktop" and assign a Numpad 0 Keyboard shortcut to it.
3. In the floating preview window, test the UDC command with Numpad 0. It should work.
4. Save all settings.
5. Restart XYplorer
6. Attempt step 3 again and it will fail. Give you the "Numpad 0 pressed outside scope".
XYplorer: 13.90.0000 (Pro Edition - Lifetime License Pro)
Loaded in: 643 ms at 4/2/2014 5:13:46 PM
Uptime: 25 secs
Memory Usage: 32,932 KB, Virtual Memory Size: 14,368 KB

OS: Windows 7 Ultimate (Service Pack 1), 64-bit (6.1)
OS Uptime: 3 days, 14 hrs, 40 mins, 3 secs
UTC Offset: --07:00
User Role: User
Themes: Yes (Aero) RealSystem32: Yes

System Locale ID: 1041 (ja-JP)
Thread Locale ID: 1033 (en-US)
Default ANSI Code Page: 1252 (ANSI - Latin I)
Active Code Page: 932 (ANSI/OEM - Japanese Shift-JIS)
DBCS Code Page: Yes

DblClick Time: 500 ms
Screen DPI: 96 (100%)
Screen Color Depth: 32
UseDPIAwareIconSizes: No, No
Icon Size: small=16, large=32
Icon Size Recommended: small=16, large=32

Command: /ini="XYplorer"
CommandW: /ini="XYplorer"
Command Normalized: /ini="XYplorer"

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: UDC Actions in Image Preview Window

Post by FluxTorpedoe »

Hi'
Looks like a problem of focus (Preview instead of List)...

Quick workaround is to use a UDC script instead of a "default" action:

Code: Select all

copyitem , "%desktopreal%\*.?";
Working here, plus it has the benefit of being customizable.

Hope this help, 8)
Flux

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

FluxTorpedoe wrote:Hi'
Looks like a problem of focus (Preview instead of List)...

Quick workaround is to use a UDC script instead of a "default" action:

Code: Select all

copyitem , "%desktopreal%\*.?";
Working here, plus it has the benefit of being customizable.

Hope this help, 8)
Flux
Ah thanks! That does solve it. However, it's still more of a workaround. Might as well let Don knows that the problem exists so that Don can have a painful fun time with it. I'm sure he's still waiting for more bugs to appear for the custom columns since it's such a new major feature.

admin
Site Admin
Posts: 66438
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC Actions in Image Preview Window

Post by admin »

Enternal wrote:Aaargh it happened again. It seems to take effect after restarting. Steps to reproduce:

1. Clear all UDCs
2. Add a UDC that "Copy to Desktop" and assign a Numpad 0 Keyboard shortcut to it.
3. In the floating preview window, test the UDC command with Numpad 0. It should work.
4. Save all settings.
5. Restart XYplorer
6. Attempt step 3 again and it will fail. Give you the "Numpad 0 pressed outside scope".
XYplorer: 13.90.0000 (Pro Edition - Lifetime License Pro)
Loaded in: 643 ms at 4/2/2014 5:13:46 PM
Uptime: 25 secs
Memory Usage: 32,932 KB, Virtual Memory Size: 14,368 KB

OS: Windows 7 Ultimate (Service Pack 1), 64-bit (6.1)
OS Uptime: 3 days, 14 hrs, 40 mins, 3 secs
UTC Offset: --07:00
User Role: User
Themes: Yes (Aero) RealSystem32: Yes

System Locale ID: 1041 (ja-JP)
Thread Locale ID: 1033 (en-US)
Default ANSI Code Page: 1252 (ANSI - Latin I)
Active Code Page: 932 (ANSI/OEM - Japanese Shift-JIS)
DBCS Code Page: Yes

DblClick Time: 500 ms
Screen DPI: 96 (100%)
Screen Color Depth: 32
UseDPIAwareIconSizes: No, No
Icon Size: small=16, large=32
Icon Size Recommended: small=16, large=32

Command: /ini="XYplorer"
CommandW: /ini="XYplorer"
Command Normalized: /ini="XYplorer"
I tried this and cannot reproduce any issue. All works just fine. I suggest we leave it at that. :)

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

You're not running away Don! Muahahahahhaha! :ninja:

Actually, did you make sure you that the Preview window is in focus when you tried the UDC? Because that's the only time you can use the scroll wheel to scroll through images. If you can scroll through images, then you can then try UDC and you will see that it should fail. Also, restarting after you set the UDC is very important (basically save the UDC udc.dat and keyboard shortcuts kv.dat and then restart XYplorer). Otherwise, it will work like expected.

EDIT: Oh, I just realized you changed the script icons. They look nice! Yeah non-related comment. :whistle:

admin
Site Admin
Posts: 66438
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC Actions in Image Preview Window

Post by admin »

Sure I tested it with the focus. No way, all is perfect here. :P

Yep, I love the icons too! :cup:

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

Interesting. It failed on 3 of my computers so far. Will do some more testing to see where the commonality lies.

admin
Site Admin
Posts: 66438
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC Actions in Image Preview Window

Post by admin »

Of course you have to activate "Allow Custom Keyboard Shortcuts in Preview" ...

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

admin wrote:Of course you have to activate "Allow Custom Keyboard Shortcuts in Preview" ...
Of course I got this turned on lol. Going to set up something that's more consistent so that I can send it directly to you to test heh. After I do more testing haha.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: UDC Actions in Image Preview Window

Post by Enternal »

Hello Don! So here's the link that includes a video AND the setup that has everything already setup for you to test it and see if it works on your side. The video is a video of me using that same setup but did not work AFTER a restart of XYplorer.

https://www.dropbox.com/sh/q7lv53lustxprux/XcQOjgkr-D

Post Reply