Change Log for the latest
XYplorer BETA version:
Code: Select all
v22.20.0205 - 2021-09-12 19:10
+ Scripting got a new function.
Name: IndexAtPos
Action: Returns the fixed internal item index within a control at a
certain screen position.
Syntax: indexatpos([x], [y], [flags])
(same as SC ItemAtPos)
return: Item index.
The index is usually 0-based, i.e. the first index is "0".
Returns "-1" if the X/Y coordinates do not point to any item.
Remarks:
Supported controls are:
- Tree (index of hovered item)
- Catalog (index of hovered item)
- List (index of hovered item)
- Toolbar (index of hovered button)
- Tab Bar (index of hovered tab)
With Breadcrumb Bar and Status Bar, the Index value is meaningless (it's
always 1 less than the position index).
Examples:
echo indexatpos(); //item position at current mouse position on screen
echo indexatpos(592, 662); //item position at arbitrary mouse position on screen
echo indexatpos(73, 108, 1); //item position at arbitrary mouse position on XYplorer
status posatpos() . " - " . indexatpos(); //show position and index in the Status Bar
+ SC catalogreport enhanced: Added {Index} to the variables supported in
template_category and template_item-
Action: Creates a report on the Catalog.
Syntax: catalogreport(template_category, template_item, [currentcategory=0])
template_category: Template for categories.
The following variables are supported:
{Caption} = Caption field.
{Index} = Item index (a fixed numeric ID, independent of the position).
{Location} = Location field ("Description" in Categories)
{RGB Text} = Text color in RRGGBB format.
{RGB Back} = Background color in RRGGBB format.
template_item: Template for items.
Variables see template_category above.
currentcategory:
0: [Default] Report on whole catalog.
1: Report on current category.
return: The report.
Example:
text catalogreport("Category: {Caption}", " #{Index}: {Caption}, {Location}, {RGB Text}, {RGB Back}");
+ SC savethumb: Now it also generates thumbnails from video files.
! SC posatpos: Over Catalog it returned the fixed internal index instead of
the position. Fixed.
To
download the latest BETA version choose a package: (1)
Installer Package, (2)
No-Install Package.
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.