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 


Run a script after activating it

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Thu Aug 15, 2019 7:33 pm    Post subject: Run a script after activating it Reply with quote

As the title suggests, I wonder if there is a way to have the program execute an Assembly script after activating it from CE, I thought I'd look for one of those codes that are updated very often and from there move the RIP register to my script.
But are there better methods? Counting the script to be executed only once.

EDIT: What the script needs to do is exchange the value of 2 addresses, for example:
Addres FF = 1
Addres FE = 2

And after enabling the Script I would like:
Addres FF = 2
Addres FE = 1
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Sun Aug 18, 2019 9:40 am    Post subject: Reply with quote

If you want to guarantee it only runs once I suspect the best thing to do would be createthread.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3325

PostPosted: Sun Aug 18, 2019 11:23 am    Post subject: Reply with quote

I'd set up a timer and I'd watch a flag and swap the values forth and back, based on the flag (the flag you control using hotkeys).
Back to top
View user's profile Send private message
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Mon Aug 19, 2019 10:51 am    Post subject: Reply with quote

Thank you so much for the answers, but in the end I used the create thread command as it was easier for me to use
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