Code: Select all
+ Scripting: Changed yesterday's syntax for item states. No more
prefixed "+" or "!". Now you define the states Default (Bold),
Checked, and Disabled by combining binary values.
Syntax:
"Caption|Icon|State : Label" Script
where
State Default = 1
State Checked = 2
State Disabled = 4
For example:
"Go C:|C:|1" goto "C:\"; //shown bold
"Go D:|D:|2" goto "D:\"; //shown checked
"Go E:|E:|3" goto "E:\"; //shown bold and checked
By way of an example: the TeraCopy Integration script reads XYplorer's Copy/Move/Backtup To-list and populates the menu with these folders. By also reading the last used folder and setting its item as default (which it currently can't do), one can use the arrow key to select another, possibly close-by folder:
C:\Data\A
C:\Data\B
C:\Data\C (default: currently bolded but not selected)
C:\Data\D
C:\Data\E
...
By selecting the default item, in this case selecting D from C with the arrow keys would be faster and also more consistent with XYplorer's built-in dialog. Hopefully this could also be used in other scripts.
XYplorer Beta Club