Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to async activate scripts

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 56

PostPosted: Sun May 05, 2024 5:39 am    Post subject: How to async activate scripts Reply with quote

Code:

A  (group)
                ﹄A1 -- AOB scan script
                ﹄A2 -- AOB scan script 
                ﹄A3 -- AOB scan script
                ﹄A4 -- AOB scan script
                ....
                ﹄A10 -- AOB scan script
 

A.Options='[moActivateChildrenAsWell,moDeactivateChildrenAsWell]'

If A is activated, the GUI will freeze.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Sun May 05, 2024 1:09 pm    Post subject: Reply with quote

Right click the script memory record -> Execute asynchronous
This has side effects too: {$lua} block will be run in another thread. Don't access the GUI, no timers, etc.

You could refactor your code and put all the aobscans / registersymbols / unregistersymbols in the header script. Multiple aobscans in a single script get executed in a single pass- this will be faster than one pass per script.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Y.A.K.E
Advanced Cheater
Reputation: 0

Joined: 15 Jul 2019
Posts: 56

PostPosted: Wed May 08, 2024 2:41 am    Post subject: Reply with quote

ParkourPenguin wrote:
Right click the script memory record -> Execute asynchronous
This has side effects too: {$lua} block will be run in another thread. Don't access the GUI, no timers, etc.

You could refactor your code and put all the aobscans / registersymbols / unregistersymbols in the header script. Multiple aobscans in a single script get executed in a single pass- this will be faster than one pass per script.


thaks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites