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 do you set keys for cheat tables

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

Joined: 13 Jan 2012
Posts: 116

PostPosted: Sun Feb 26, 2012 11:52 am    Post subject: how do you set keys for cheat tables Reply with quote

I wanted to know how do you set keys for cheat tables so you can turn cheats on and off and sounds so you know that it did turn them on and off without having to exit the game to do it?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sun Feb 26, 2012 12:21 pm    Post subject: Reply with quote

check the script generated when you use the trainergenerator. It does something similar (if you use beep on activate)

Code:

function afterHotkey(Hotkey)
  --Executed after the hotkey has been processed
  beep() --great sound effect
end

addresslist=getAddressList()
memrec=addresslist_getMemoryRecordByDescription(addresslist,"Name of your entry")
Hotkey=memoryrecord_getHotkeyByID(memrec,0) --you get the ID by looking at the defined hotkeys of the entry. When selected, the bottom right has the id  (first one is usually 0)

memoryrecordhotkey_onPostHotkey(Hotkey,afterHotkey)


Remember, make sure the hotkeyid matches. If you delete one and create a new one, the ID will NOT be the same

Edit: Rereading the topic it might be that you don't even know how to set a hotkey in the first place:
Rightclick a cheat entry, and then set a hotkey and let it do something (activate/deactive/set value/ freeze/unfreeze/ etc...)

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ghosts
Expert Cheater
Reputation: 0

Joined: 13 Jan 2012
Posts: 116

PostPosted: Sun Feb 26, 2012 12:26 pm    Post subject: Reply with quote

Dark Byte wrote:
check the script generated when you use the trainergenerator. It does something similar (if you use beep on activate)

Code:

function afterHotkey(Hotkey)
  --Executed after the hotkey has been processed
  beep() --great sound effect
end

addresslist=getAddressList()
memrec=addresslist_getMemoryRecordByDescription(addresslist,"Name of your entry")
Hotkey=memoryrecord_getHotkeyByID(memrec,0) --you get the ID by looking at the defined hotkeys of the entry. When selected, the bottom right has the id  (first one is usually 0)

memoryrecordhotkey_onPostHotkey(Hotkey,afterHotkey)


Remember, make sure the hotkeyid matches. If you delete one and create a new one, the ID will NOT be the same

Edit: Rereading the topic it might be that you don't even know how to set a hotkey in the first place:
Rightclick a cheat entry, and then set a hgotkey and let it do something (activate/deactive/set value/ freeze/unfreeze/ etc...)


Thanks, so will it still be a cheat table after doing this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sun Feb 26, 2012 12:39 pm    Post subject: Reply with quote

yes, just make sure the script gets executed else you won't hear a beep when the hotkey is triggered. (you can set the option to always execute in settings, or the first time you open a table with a lua script)
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ghosts
Expert Cheater
Reputation: 0

Joined: 13 Jan 2012
Posts: 116

PostPosted: Sun Feb 26, 2012 1:57 pm    Post subject: Reply with quote

Dark Byte wrote:
yes, just make sure the script gets executed else you won't hear a beep when the hotkey is triggered. (you can set the option to always execute in settings, or the first time you open a table with a lua script)


I am trying just a little confused and want to make sure i do it the way it's suppose to be. So the script I am using is this http://forum.cheatengine.org/viewtopic.php?t=545855 and the insructions how to use the cheat table http://forum.cheatengine.org/viewtopic.php?p=5317300#5317300 this is why I wanted to set keys for the table.

Also thanks for the help you have gave.
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