pspad:
--------------------------------------------------------------------------------
PSPad closing has no chance to be fired for your purposes.
I will remove it and automatically close all scripts during PSPad close
process.
--------------------------------------------------------------------------------

Hi, I'd like to add some other use case which would (likely) benefit from a
similar scripting functionality.
If the scripts should use  their own gui elements, they will probably need a
reliable destructor for such cases, to close these elements properly before the
editor (or its scripting engine) is closed and probably before reloading scripts
too.
It seems, these guis can be disconnected from PSPad but can still keep running
in such cases now.
(In my brief experiments some time ago - with python + tkinter and with hta,
this seemed to me as the main problem - some collisions on closing and newly
creating the guis also could lead to a hang for the whole editor.)

However, it seems, some kind of a trigger method would be needed, something like
on(Before)Close, or on(Before)ReloadScripts etc.
as a kind of complement of the present init().
However, I see, that the event handling might get much more complicated
(although this closing event might not be very frequent, compared to others).
Maybe it can be considered in some future version.

Thanks for this new version and its additions.
     regards,
         vbr

-- 
<https://forum.pspad.com/read.php?6,72029,72050>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem