Scripting got a new function:
Name: IndexAtPos
Action: Returns the fixed internal item index within a control at a certain screen position.
Syntax: indexatpos(
- , [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).
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:
Variables see template_category above.
currentcategory:
0: [Default] Report on whole catalog.
1: Report on current category.
return: The report.