Ciao Petr,
not sure what you need, I try to guess something:
- you want a controlled closing of your script so when something try to close it (by [X] for example), thinBasic intercept it and, if present, will perform TBTerminate function
- or you want a global command to shut down all scripts under execution
- or both
- or something I didn't get
I understand in such a situation where many scripts are executed, updating thinBasic can be a problem.
The only solution I see is a kind of "watchdog service" able to "talk" with all running scripts (for example via TCP or UDP) able to tells all script to shut down and later to resume all of them.
Using UDP it would not be that complex to create it, it is very close to UDP_Notify_Server.tBasic, UDP_Notify_Client.tBasic you can find at \SampleScripts\TcpUdp\
I'm thinking to some Server script used as coordinator, all clients share a bit of code able to talk to server.
Every client let the server know that it is alive and what is the script/process/...
The server collects all those info and have some commands to send to all registered clients to shutdown.
Do not know, just an idea
Eros
Bookmarks