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 


Possible to speed up hotkey refresh rate?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Drivium
Expert Cheater
Reputation: 0

Joined: 16 Apr 2013
Posts: 100

PostPosted: Sun Jun 14, 2020 2:15 am    Post subject: Possible to speed up hotkey refresh rate? Reply with quote

I'm working on a free cam and I'm trying to use hotkeys to increase/decrease cam coordinates. If I increment (increase/decrease) the value too high, the cam isn't fluid (choppy), but if I increment the value too low, it takes forever to move. Hoping there's a way to keep my increment low, but modify the hotkey refresh rate.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Sun Jun 14, 2020 2:24 am    Post subject: Reply with quote

To start of you can use
Code:

setGlobalKeyPollInterval(interval)

to increase the polling frequency of hotkeys inside CE (the lower the fastest. 0 will eat your cpu for breakfast)

Then you can either adjust the hotkey repeat interval per hotkey, or globally
per hotkey it's something like:
Code:

hk=createHotkey(function() print("bla") end, VK_A)
hk.DelayBetweenActivate=interval

where interval is the number of milliseconds between it retriggering again


or you can use the global function
Code:

setGlobalDelayBetweenHotkeyActivation(interval)

though not recommended as it affects EVERY hotkey that hasn't set a custom reactivation delay

_________________
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
Drivium
Expert Cheater
Reputation: 0

Joined: 16 Apr 2013
Posts: 100

PostPosted: Sun Jun 14, 2020 8:25 pm    Post subject: Reply with quote

This is perfect! Thank you!
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