@Fox Yes, but I couldn't find it, we can only choose what to do when a certain line gives an error, but the error can occur on any line. I want to run a command when the complete script gives an error?
I think you could use another thread with the browser to accomplish this. And saving the necessary data to a resource / global variable, then using this data in the new thread, whether with the browser or whatever needs to be done.