Posted: Sat Jan 05, 2019 7:07 am Post subject: Pause in lua script
Hi, I'm working on my lua script and I want to ask if ce offers any function how to inject a small pause to the script. It does one function, then does nothing for a second or two and then it does the next function. If anyone knows how to do that, please let me know
You could try running a loop while statement with calling processMessages() so cheat engine will respond at least, it can work but there will be much performance penalties.
I wrote an example of how to use threads (for this kind of actions - delayed actions).
It uses threads suspend and resume, which saves us lot's of cpu (better than using sleep function and especially for/while loops)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum