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 


Setting up hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
shadowwolf
How do I cheat?
Reputation: 0

Joined: 01 Apr 2013
Posts: 9
Location: The netherlands

PostPosted: Thu Jun 25, 2015 12:04 pm    Post subject: Setting up hotkeys Reply with quote

Is it possible to set a hotkey from a plugin? I know it's possible to use the createHotkey function from lua, but I'm wondering if it's possible to do this without having to call lua. But is there something similar in the C plugin API? I searched the header file but it did not show a function that seemed to do this. This is the lua code I wish to convert to a native function

Code:

local hotkey = createHotkey(somecallback,VK_SHIFT,VK_L)


I hope there's a way to do this, it would help out a lot. Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jun 25, 2015 12:39 pm    Post subject: Reply with quote

no, the native hotkey handler by ce isn't explicitly exported.
You can use native windows hotkeys by creating an invisible window and then handle wm_hotkey messages
or else rely on lua

_________________
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
shadowwolf
How do I cheat?
Reputation: 0

Joined: 01 Apr 2013
Posts: 9
Location: The netherlands

PostPosted: Sat Jun 27, 2015 3:31 am    Post subject: Reply with quote

Thanks for your reply. I'll use the invisible window approach to create the hotkeys. Thank you for the help.
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 Source -> Plugin development 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