View previous topic :: View next topic |
Author |
Message |
midler How do I cheat? Reputation: 0
Joined: 27 Dec 2011 Posts: 3 Location: Tbilisi
|
Posted: Tue Dec 27, 2011 4:01 pm Post subject: Make trainer cheat function work on button |
|
|
hi, please help me i want to make trainer and no luck ((( i made trainer with hotkey (ex. CTRL+F) works fine but i want to make trainer with buttons. i mean wen i will press a button one of trainer function will enable. i know that for this i need scryot.plase help how to make this (
thanks..
_________________
I love disassembling programs |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Dec 27, 2011 4:34 pm Post subject: |
|
|
Code: | function Button1Click(sender)
hotkey=memoryrecord_getHotkeyByID(memrec0,0)
memoryrecordhotkey_doHotkey(hotkey)
end
control_onClick(CETrainer_Button1, Button1Click) |
But you must know which memrec (memrec0, memrec1, memrec2, etc) and you must know which hotkey ID.
I used memrec0 and hotkeyID = 0.
_________________
|
|
Back to top |
|
|
midler How do I cheat? Reputation: 0
Joined: 27 Dec 2011 Posts: 3 Location: Tbilisi
|
Posted: Wed Dec 28, 2011 2:08 am Post subject: |
|
|
it tells me: access violation... whats the problem? can you write quckly how to find memrec 0 or 1 or 2 ? i replaced all names but no luck
_________________
I love disassembling programs |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Dec 28, 2011 9:07 am Post subject: |
|
|
replace
Code: |
hotkey=memoryrecord_getHotkeyByID(memrec0,0)
|
with
Code: |
local mr=addresslist_getMemoryRecordByDescription(getAddressList(),"Unique description of your cheat entry") --find the memrec
if (mr~=nil) then
hotkey=memoryrecord_getHotkey(mr,0) --first hotkey of the memrec (if there's only 1, this is it)
else
print("Cheat entry not found")
end
|
_________________
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 |
|
|
midler How do I cheat? Reputation: 0
Joined: 27 Dec 2011 Posts: 3 Location: Tbilisi
|
Posted: Wed Dec 28, 2011 10:54 am Post subject: |
|
|
thank you very much Dark Byte )
_________________
I love disassembling programs |
|
Back to top |
|
|
|