3 ms·
I came up with a quite an ugly hack in Python for the EventScripts plugin (http://python.eventscripts.com http://python.eventscripts.com). It was designed to a
by ErrantX 18y ago
I came up with a quite an ugly hack in Python for the EventScripts plugin (http://python.eventscripts.com http://python.eventscripts.com).
It was designed to allow you to thread a request for a web page in pure python and also timeout after a while (because threading is stupidly slow via ESP on game servers)..
Code: http://errant.pastebin.com/f3d492f2d http://errant.pastebin.com/f3d492f2d
That is older code but all I can find atm. It has a tendency to crash things :P
The final code had a lot of time.sleep(0) code in it too to force the threads to try and grab the GIL. Ugh :P
(also for the record the hacked "kill" extension to threading.Thread I picked up from elsewhere :))