|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
MxSmack Newbie cheater Reputation: 0
Joined: 16 Apr 2012 Posts: 10
|
Posted: Sat Feb 23, 2013 8:51 am Post subject: Adding the option to change keys, time and speed. |
|
|
Hello,
I wanted to add to this code the ability to choose the key I want to activate the slow motion and possibly be able to change the time and the speed of it on the window.
Last year I had the help of Dark Byte which helped me a lot really, making this code for me (I don't understand a thing about code), and it worked out very well for me:
Code: | strings_add(getAutoAttachList(), "yourgame.exe")
function dummy()
end
function disableSH()
--print("Disabling the speedhack")
speedhack_setSpeed(1);
generichotkey_onHotkey(hk,enableSH) --enable the hotkey again
timer_setEnabled(t,false)
end
function enableSH()
--print("Enabling the speedhack")
generichotkey_onHotkey(hk,dummy) --change the function the hotkey calls to a dummy (alternatively, I could use object_destroy, and recreate it later)
speedhack_setSpeed(0.20)
timer_setEnabled(t,true)
end
hk=createHotkey("enableSH",VK_CAPITAL)
t=createTimer(nil,false)
timer_setInterval(t,5000) --5 seconds
timer_onTimer(t,disableSH) |
Is it difficult to do it?
Thanks in advance.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Feb 23, 2013 9:08 am Post subject: |
|
|
check defines.lua for a list of VK_ keys
and then replace VK_CAPITAL with the key. (e.g: VK_A, VK_F1, etc..)
_________________
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 |
|
|
MxSmack Newbie cheater Reputation: 0
Joined: 16 Apr 2012 Posts: 10
|
Posted: Sat Feb 23, 2013 9:46 am Post subject: |
|
|
Thanks, but this would change the key every time I change the code right?
I was looking for a way like, a list which we could select (for example the language menus on installations) the key we want of a whole list.
Is it too complicated?
Thanks again.
|
|
Back to top |
|
|
|
|
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
|
|