 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
squerol Advanced Cheater
Reputation: 2
Joined: 06 Jul 2015 Posts: 65 Location: Poland
|
Posted: Sun Jun 19, 2016 3:55 pm Post subject: Question about advanced hotkeys... |
|
|
Hello. I have a question about hotkeying - is it possible to make hotkeys in Cheat Engine, to make single hotkey press to work like that examples - [set value "x" to "y" for "z" amount of time, after "z" amount of time set it back to "x"] or (it's more like the same) [increase value "x" by "y", after "z" amount of time deacrease value "x" by value "y"]?
It's really important for me, I've discovered that by making hotkey work like one of that examples, I could implement "dodge system" feature in Gothic 3 game - It already works with changing move speed values, but pressing one hotkey to increase movement speed value, and after maybe half second pressing other hotkey to decrease that value its not very promising...
Thank you for any suggestions
|
|
Back to top |
|
 |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Sun Jun 19, 2016 4:22 pm Post subject: |
|
|
you should combine cheatengine's hotkeys and autohotkey to get the result you're looking for.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Jun 19, 2016 7:40 pm Post subject: |
|
|
Just use a simple timer. You can use LUA or assembly to do this.
|
|
Back to top |
|
 |
squerol Advanced Cheater
Reputation: 2
Joined: 06 Jul 2015 Posts: 65 Location: Poland
|
Posted: Mon Jun 20, 2016 9:12 am Post subject: |
|
|
Thank You for Your ideas I couldn't get into that LUA/asssembly stuff, so I've picked AutoHotkey software method, It's easy and works like I wanted.
But I have other problemos now
Is there any possibilty to set hotkey action, after double tap of keyboard key? For example, when I double tap "W" button, the value will change?
So if it's not possible so maybe there is a method to restrict holding button press? When I accidentaly hold a button even for a nano-moment after button press, unwanted things are happening... I want to make something like that - when I even hold a button for a 15 minutes, the hotkey action will perform only once, just after button press, not all time while I'm holding the button. I've tried CapsLock for that, but it works like standard button, I can hold it.
EDIT:
Found solution with AutoKey software, just needed do some stuff here
|
|
Back to top |
|
 |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Mon Jun 20, 2016 11:23 am Post subject: |
|
|
squerol wrote: | Thank You for Your ideas I couldn't get into that LUA/asssembly stuff, so I've picked AutoHotkey software method, It's easy and works like I wanted.
But I have other problemos now
Is there any possibilty to set hotkey action, after double tap of keyboard key? For example, when I double tap "W" button, the value will change?
So if it's not possible so maybe there is a method to restrict holding button press? When I accidentaly hold a button even for a nano-moment after button press, unwanted things are happening... I want to make something like that - when I even hold a button for a 15 minutes, the hotkey action will perform only once, just after button press, not all time while I'm holding the button. I've tried CapsLock for that, but it works like standard button, I can hold it. |
Couldn't you just put it on another key?
If you want to code a double tap, use this : https://autohotkey.com/board/topic/94771-detect-double-tap-of-key-without-modifying-original-behavior/.
If you want it to launch only once when you press down a key, use the autohotkey function KeyWait.
|
|
Back to top |
|
 |
squerol Advanced Cheater
Reputation: 2
Joined: 06 Jul 2015 Posts: 65 Location: Poland
|
Posted: Mon Jun 20, 2016 1:15 pm Post subject: |
|
|
NoMoreBSoD wrote: | squerol wrote: | Thank You for Your ideas I couldn't get into that LUA/asssembly stuff, so I've picked AutoHotkey software method, It's easy and works like I wanted.
But I have other problemos now
Is there any possibilty to set hotkey action, after double tap of keyboard key? For example, when I double tap "W" button, the value will change?
So if it's not possible so maybe there is a method to restrict holding button press? When I accidentaly hold a button even for a nano-moment after button press, unwanted things are happening... I want to make something like that - when I even hold a button for a 15 minutes, the hotkey action will perform only once, just after button press, not all time while I'm holding the button. I've tried CapsLock for that, but it works like standard button, I can hold it. |
Couldn't you just put it on another key?
If you want to code a double tap, use this : https://autohotkey.com/board/topic/94771-detect-double-tap-of-key-without-modifying-original-behavior/.
If you want it to launch only once when you press down a key, use the autohotkey function KeyWait. |
I've found that already with help from AutoHotkey forum, and edited my message that I've found solution before yours, but still Thank You . And indeed, I've had to edit my script and KeyWait function was there too
Code: | ~CapsLock::
Send .
Sleep 200
Send /
KeyWait Capslock
Return |
Something like that
|
|
Back to top |
|
 |
NoMoreBSoD Advanced Cheater
Reputation: 3
Joined: 03 Sep 2013 Posts: 85
|
Posted: Mon Jun 20, 2016 1:37 pm Post subject: |
|
|
Oh nice! I quoted your message, got distracted and replied hours later without seeing the edit. Autohotkey is a fantastic tool, think of using it whenever you have a tedious/repetitive task.
Anyway, glad i could be of some help
|
|
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
|
|