@Fox said in OnApplicationStop:
@basmail said in OnApplicationStop:
@Fox Quite simple, OnApplicationStop should be a function that will run a custom script after I click exit or stop.
Like "OnApplicationStart" just flipped...
Actions are performed inside the program, where do you think actions should be performed if you close it?
The "OnApplicationStart" function is executed in one thread BEFORE all the script threads start, users on the forum have already asked to add the "OnApplicationStop" function, which would also be executed in one thread, but only after all the threads are completed. This algorithm can be implemented now using the action "Call function in several threads"
-.- do you think I'm retarded lol
My BAS script does create a folder for each thread named by a random string, copies a tool and a config in it and runs the tool 24/7, when I now close the BAS bot the folders and the processes are remaining running.
What I would like to have is the possibility to clean up this stuff with the BAS script. If a script runs for 24/7 I can't wait for all threads to be completed, makes sense right? :)
Is that SO hard to understand?...