Change Log for the latest
XYplorer BETA version:
Code: Select all
v24.20.0302 - 2023-03-20 12:23
+ Scripting got a new command.
Name: Preview
Action: Previews a file in the Preview Pane.
Syntax: preview [file], [mode], [guid]
file: Full path of file to preview.
Defaults to the currently focused file.
mode: How the preview is generated.
n: [Default] Normal UI preview as if you selected the file.
p: Use PreviewHandler, bitness depends on current user settings (incl. possible fallback to other bitness).
p32: Use 32-bit PreviewHandler.
p64: Use 64-bit PreviewHandler.
t: Use ThumbnailProvider, method and bitness depend on current user settings.
tf32: Use 32-bit IShellItemImageFactory.
tf64: Use 64-bit IShellItemImageFactory.
te32: Use 32-bit IExtractImage (currently not implemented in 64-bit).
x: Close the Preview Pane.
guid: CLSID of the PreviewHandler to use, eg {CF822AB4-6DB5-4FDA-BC28-E61DF36D2583}.
Only used with modes p, p32, p64.
Remarks:
- The command ensures that the Preview Pane is visible.
- The time needed is displayed in the status bar.
- Live resizing, MDBU, and tooltip are supported.
- A powerful command that allows you to preview files that are not currently listed.
- Also useful as a debugging device for shell-generated previews and thumbnails,
and as a test bed for CLSIDs.
Examples:
preview "E:\Test\Preview\Katakana.pdf"; //normal preview
preview "E:\Test\Preview\Katakana.pdf", p; //PreviewHandler (bitness depends)
preview "E:\Test\Preview\Katakana.pdf", p32; //PreviewHandler (32-bit)
preview "E:\Test\Preview\Katakana.pdf", p64; //PreviewHandler (64-bit)
preview "E:\Test\Preview\Katakana.pdf", t; //ThumbnailProvider (bitness depends)
preview "E:\Test\Preview\Katakana.pdf", tf32; //ThumbnailProvider IShellItemImageFactory (32-bit)
preview "E:\Test\Preview\Katakana.pdf", tf64; //ThumbnailProvider IShellItemImageFactory (64-bit)
preview "E:\Test\Preview\Katakana.pdf", te32; //ThumbnailProvider IExtractImage (32-bit)
preview; //normal preview of current file
preview , x; //close the preview pane
//PreviewHandler (32-bit), GUID of PDF-XChange PDF Preview Provider:
preview "E:\Test\Preview\Katakana.pdf", p32, "{CF822AB4-6DB5-4FDA-BC28-E61DF36D2583}";

To easily
upgrade to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. If you prefer to
download the BETA version, choose one of these packages:
(1)
Installer Package, (2)
No-Install Package (for manual unpacking).
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned. It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...) before running a new BETA version. This will also help in fixing any fresh bugs.