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 


Increase values at address by 1 on keypress?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Valatros
Cheater
Reputation: 1

Joined: 21 Nov 2015
Posts: 36

PostPosted: Sat Mar 11, 2017 1:15 pm    Post subject: Increase values at address by 1 on keypress? Reply with quote

Just looking for the easiest, general way to do this. I have three addresses, and I'm trying to create the ID list for what each value does. Just getting kinda annoying going through literally a thousand of these and having to manually type in the new address each time, so hoping there's a quick script or something to increase the values by 1 each time I press.... let's say alt.

Just incase it's necessary to show how:

Addresses at the moment are 1414A3FBC, 1414A3FBE, 1414A3FC0. Note that I don't want them all to be the same value; I'm doing three at a time, so each value should be (itself + 1) on keypress.

I figure I'll keep the code around and use it for situations like this in the future, so thanks in advance for what will likely be a script I use for a very long time if anyone knows how to do this.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sat Mar 11, 2017 1:28 pm    Post subject: This post has 1 review(s) Reply with quote

Use the memory record hotkeys for simple stuff.
  1. Add the address to the address list
  2. Right click on the memory record and select "Set/Change hotkeys"
  3. Click on "Create Hotkey"
  4. Set the keys, sounds, actions, and description
  5. Click on "Apply" then "OK"

If you want to use Lua, look at main.lua for documentation and use Google for examples.

_________________
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
Valatros
Cheater
Reputation: 1

Joined: 21 Nov 2015
Posts: 36

PostPosted: Sat Mar 11, 2017 1:39 pm    Post subject: Reply with quote

... Oh my god. I had no idea there was a "Set Hotkeys" option. Wow. Thanks, done, that was straightforward.
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 Lua Scripting 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