pspad: -------------------------------------------------------------------------------- Possible is nrar anything, but callbacks in interfaces are not easybto do. Intetfaces are too abstract. For callback you need to know id of process (running scriptsl
I can do general function what will return states, e.g. PSPad is closing. But script must react it snd I am afraid PSPad will terminate script faster than script reaction. We can extend scripts of flags, that PSPad will wait till script ends. There is lot of possibilities what can be done. The question is if it worth the effort and time you must put into it. -------------------------------------------------------------------------------- Thanks for the detailed explanation, I clearly haven't seen the technical problems. These options probably won't help in the mentioned contexts, where a kind of loop is run in parallel to PSPad - be it GUI or some other independent code. My idea was likely too simple and possibly unusable for the underlying mechanism. I imagined a one-time function call of such hypothetical function "exit", just like Init() but before closing the program (or reloading scripts). If the script would define this function, it would be executed at that moment (with some waiting for completing), otherwise the program could close and terminate the scripts just like now. But anyway, I can understand, that I am likely missing some technical implications and details, which make this difficult. Thanks, vbr -- <https://forum.pspad.com/read.php?2,73475,73483> PSPad freeware editor https://www.pspad.com
