Change Log for the latest
XYplorer BETA version:
Code: Select all
v12.10.0001 - 2013-02-09 16:31
+ Scripting: Now you can define two special-named scripts in Multi
Script Resources, "_Initialize" and "_Terminate". They can be
placed anywhere in the MSR, and they are not shown in the popup
menu.
The script called "_Initialize" will be auto-processed before the
menu is popped. The script called "_Terminate" will be auto-
processed after the script selected from the menu has been
processed (or after the menu has been canceled).
If a script within a MSR is called directly (SCs Sub or Load),
then "_Initialize"/"_Terminate" are NOT called.
For example, this MSR defines a permanent variable (which is also
global by definition), then offers various scripts in a popup
menu, then finally removes the variable from memory:
"_Initialize"
// if variable already exists it is NOT reset here but keeps it current value
perm $p_a;
// explicitly initialize it to zero
$p_a = 0;
"_Terminate"
unset $p_a;
"Show Variable"
echo $p_a;
"Plus One"
$p_a = $p_a + 1;
echo $p_a;
"Minus One"
$p_a = $p_a - 1;
echo $p_a;
"Load Plus One"
// will NOT call "_Initialize"/"_Terminate"
Load "*", "Plus One";
// WILL call "_Initialize"/"_Terminate"
Load "*", "*";
"Sub Plus One"
// will NOT call "_Initialize"/"_Terminate"
Sub "Plus One";
To
download the latest BETA version choose a download 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.