| View previous topic :: View next topic |
| Author |
Message |
ghosts Expert Cheater
Reputation: 0
Joined: 13 Jan 2012 Posts: 116
|
Posted: Sun Feb 26, 2012 11:52 am Post subject: how do you set keys for cheat tables |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25917 Location: The netherlands
|
Posted: Sun Feb 26, 2012 12:21 pm Post subject: |
|
|
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 |
|
 |
ghosts Expert Cheater
Reputation: 0
Joined: 13 Jan 2012 Posts: 116
|
Posted: Sun Feb 26, 2012 12:26 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25917 Location: The netherlands
|
Posted: Sun Feb 26, 2012 12:39 pm Post subject: |
|
|
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 |
|
 |
ghosts Expert Cheater
Reputation: 0
Joined: 13 Jan 2012 Posts: 116
|
Posted: Sun Feb 26, 2012 1:57 pm Post subject: |
|
|
| 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 |
|
 |
|