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 


Question about advanced hotkeys...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
squerol
Advanced Cheater
Reputation: 2

Joined: 06 Jul 2015
Posts: 65
Location: Poland

PostPosted: Sun Jun 19, 2016 3:55 pm    Post subject: Question about advanced hotkeys... Reply with quote

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 Idea
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Sun Jun 19, 2016 4:22 pm    Post subject: This post has 1 review(s) Reply with quote

you should combine cheatengine's hotkeys and autohotkey to get the result you're looking for.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Jun 19, 2016 7:40 pm    Post subject: This post has 1 review(s) Reply with quote

Just use a simple timer. You can use LUA or assembly to do this.
Back to top
View user's profile Send private message
squerol
Advanced Cheater
Reputation: 2

Joined: 06 Jul 2015
Posts: 65
Location: Poland

PostPosted: Mon Jun 20, 2016 9:12 am    Post subject: Reply with quote

Thank You for Your ideas Smile 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
View user's profile Send private message Send e-mail Visit poster's website
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Mon Jun 20, 2016 11:23 am    Post subject: Reply with quote

squerol wrote:
Thank You for Your ideas Smile 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
View user's profile Send private message
squerol
Advanced Cheater
Reputation: 2

Joined: 06 Jul 2015
Posts: 65
Location: Poland

PostPosted: Mon Jun 20, 2016 1:15 pm    Post subject: Reply with quote

NoMoreBSoD wrote:
squerol wrote:
Thank You for Your ideas Smile 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 Wink . And indeed, I've had to edit my script and KeyWait function was there too Wink

Code:
~CapsLock::
   Send .
   Sleep 200
   Send /
   KeyWait Capslock
Return


Something like that Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Mon Jun 20, 2016 1:37 pm    Post subject: Reply with quote

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