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 


Setting and freezing a value using one hotkey

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ahmadmahrous_1
How do I cheat?
Reputation: 0

Joined: 04 Dec 2011
Posts: 3

PostPosted: Mon Oct 29, 2012 12:15 pm    Post subject: Setting and freezing a value using one hotkey Reply with quote

How can I set and freeze a value using one hotkey in CE 6.2 (same as what in CE 5.6.1)?
Back to top
View user's profile Send private message  
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25715
Location: The netherlands

PostPosted: Mon Oct 29, 2012 1:06 pm    Post subject: Reply with quote

Add two hotkeys with the same key combination to the entry
One freezes it. The other sets the value

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger 
ICQ Number
ahmadmahrous_1
How do I cheat?
Reputation: 0

Joined: 04 Dec 2011
Posts: 3

PostPosted: Tue Oct 30, 2012 9:17 am    Post subject: Reply with quote

Dark Byte wrote:
Add two hotkeys with the same key combination to the entry
One freezes it. The other sets the value


this will make two entries in the form
how can i make it one entry in the form
Back to top
View user's profile Send private message  
SteveAndrew
Master Cheater
Reputation: 30

Joined: 02 Sep 2012
Posts: 323

PostPosted: Tue Oct 30, 2012 3:17 pm    Post subject: Reply with quote

ahmadmahrous_1 wrote:
Dark Byte wrote:
Add two hotkeys with the same key combination to the entry
One freezes it. The other sets the value


this will make two entries in the form
how can i make it one entry in the form


No it wont create two entries in the cheat list... Only if you made two manually (which isn't necessary) Just make sure to press create hotkey rather then edit for the second hotkey, maybe that's where you thought you needed to cheat table entries?

See attached image, two hotkeys, using same key combination, doing what you want...

And if you mean it creates two entries in the Set/Change hotkey window then so what? Why would that matter? That IS what you wanted isn't it? It's needs two entries, because they do different things, one sets and one freezes...



OneTableEntryTwoHotkeys.png
 Description:
 Filesize:  29.21 KB
 Viewed:  38488 Time(s)

OneTableEntryTwoHotkeys.png



_________________
Back to top
View user's profile Send private message  
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25715
Location: The netherlands

PostPosted: Tue Oct 30, 2012 3:45 pm    Post subject: Reply with quote

I think he means the generic trainerscript generator

Easiest method to solve that is to go into designer mode and just delete the second one. It's a visual thing only

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger 
ICQ Number
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Oct 30, 2012 3:52 pm    Post subject: Reply with quote

@SteveAndrew
If you choose "generate generic trainer ...." it will create two entries.

@ahmadmahrous_1
create only "toggle freeze" hotkey

after generating generic trainer "script only", go to lua script, search for
onPostHotkey function

and just after:
local isActive=memoryrecord_isActive(memrec)

add this
if isActive then memoryrecord_setValue(memrec, 1500100900) end

1500100900 - your value;

now save as cetrainer or exe

_________________
Back to top
View user's profile Send private message MSN Messenger 
ahmadmahrous_1
How do I cheat?
Reputation: 0

Joined: 04 Dec 2011
Posts: 3

PostPosted: Wed Oct 31, 2012 5:19 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
@SteveAndrew
If you choose "generate generic trainer ...." it will create two entries.

@ahmadmahrous_1
create only "toggle freeze" hotkey

after generating generic trainer "script only", go to lua script, search for
onPostHotkey function

and just after:
local isActive=memoryrecord_isActive(memrec)

add this
if isActive then memoryrecord_setValue(memrec, 1500100900) end

1500100900 - your value;

now save as cetrainer or exe


Thank you this work perfect
But one more help what if I want to freeze and set more than one value by one hot key (in one entry) but I can not use header because I want to freeze two values and set the first to 100 and the second to 50
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