Posted: Fri Jun 13, 2014 6:45 am Post subject: memoryrecordhotkey_doHotkey giving an error
Hello,
i'm trying to use the memoryrecordhotkey_doHotkey function but i keep on getting an Error: Invalid class object
here is the code
Code:
function LifeHackClick(sender)
local lives_address=addresslist_getMemoryRecordByDescription(getAddressList(),"lives") --find the memrec
if (lives_address~=nil) then
Lives_hotkey=memoryrecord_getHotkey(lives_address,0) --first hotkey of the memrec (if there's only 1, this is it)
else
print("Cheat entry not found")
end
memoryrecordhotkey_doHotkey(Lives_hotkey) --thats where the error occurs
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
Posted: Fri Jun 13, 2014 7:44 am Post subject:
there is a bug in memoryrecord_getHotkey
use memoryrecord_getHotkeyByID and give as hotkey ID the id of the hotkey. (it shows when selected in the bottom right of the set/change hotkey window) _________________
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
thanks a lot sir dark byte for the fast reply
memoryrecord_getHotkeyByID is working fine with me and i can now peacefully complete my trainer and destroy game developer's efforts Muahahahahaha.
thanks anyway for making such a great tool for hackers
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