Feature request: application start/exit-time script
Posted: 27 Jun 2015 20:34
Hey Don, I think someone had asked for this before, but please could you add this? Look, I even made a changelog entry that explains everything!
now you tell me, isn't that just asking to be added to XY? almost all prowertools have init scripts!
Code: Select all
v15.40.0*** - 2015-0*-** **:**
+++ Introducing Startup/Exit scripts: scripts that run at XY startup and exit.
Create two scripts as <xypath>\_Initialize.xys and <xypath>\_Terminate.xys.
The first one will be executed right after XY is started and the second one
just before quitting.
This way, you can stop (ab)using shortcuts and commandline arguments to run
XYplorer with certain commands. Just add them straight to _Initialize.xys.
Notes:
- Hold SHIFT while XYplorer is starting to skip loading the Startup script,
similarly, hold SHIFT and quit XYplorer to skip loading the Exit script.
- New instances started with /fresh commandline option or via SC ::fresh or
::freshhere do not load these scripts.
+ Configuration | Startup & Exit: Added option "Load Startup/Exit scripts".
Factory default is off.
+ Added new command: File | Exit Without Loading Exit script.
+ SC exit enhanced: Added new mode 'x', for to startup/exit scripts.
Syntax: exit [mode]
mode:
x = skip loading startup/exit scripts.
example:
:: exit 'xn'; //exit with saving, without loading exit script
:: exit 'xr'; //restart, without loading either exit/start script
+ Added new commandline option /noinitscript to start XY without loading the
startup script.