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 


Change Registers in AA Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
catfood
Cheater
Reputation: 0

Joined: 22 Jun 2015
Posts: 34

PostPosted: Fri Nov 04, 2016 8:50 pm    Post subject: Change Registers in AA Script Reply with quote

Is there any way I can change the register at an address in an AA script?

Fake script for example:
[enable]
Address:
*set EAX to x value*

[disable]
Address:
*set EAX to x value*

For now i've just been using the 'Change register at this location' in memory view, but it's a pain to have to manually change it every time and keep memory view open.


Any help is appreciated.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Nov 04, 2016 9:02 pm    Post subject: Reply with quote

Maybe you should check out the tutorial forum...
AOB Injection Template
Code:
mov eax,#100
Back to top
View user's profile Send private message
catfood
Cheater
Reputation: 0

Joined: 22 Jun 2015
Posts: 34

PostPosted: Fri Nov 04, 2016 9:20 pm    Post subject: Reply with quote

Maybe I didn't phrase my question correctly, sorry.

That code will change the instruction at the address, which isn't what i'm trying to do.

Say for example I have address 123456 and the instruction is push eax.
When I breakpoint at that address, it shows that the EAX is 2.
So without right clicking it and doing 'Change register at this location', how would I include something to change its EAX in an AA script?

Using the code you provided, it would change the 'push eax' to 'mov eax'


Last edited by catfood on Fri Nov 04, 2016 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Nov 04, 2016 9:26 pm    Post subject: Reply with quote

AOB Injection Template
Back to top
View user's profile Send private message
catfood
Cheater
Reputation: 0

Joined: 22 Jun 2015
Posts: 34

PostPosted: Fri Nov 04, 2016 10:13 pm    Post subject: Reply with quote

nevermind i'm just an idiot... my apologies..

thank you so much Zanzer!
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