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 


memoryrecordhotkey_doHotkey giving an error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
omax
Newbie cheater
Reputation: 0

Joined: 29 May 2014
Posts: 14
Location: Jupiter

PostPosted: Fri Jun 13, 2014 6:45 am    Post subject: memoryrecordhotkey_doHotkey giving an error Reply with quote

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

end


thanks Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Jun 13, 2014 7:44 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
omax
Newbie cheater
Reputation: 0

Joined: 29 May 2014
Posts: 14
Location: Jupiter

PostPosted: Fri Jun 13, 2014 7:57 am    Post subject: Reply with quote

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
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