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 


Need help with Hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Tettey
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 10 Jun 2023
Posts: 1

PostPosted: Mon Jun 12, 2023 4:15 am    Post subject: Need help with Hotkeys Reply with quote

Hello, i tried to make trainer for a game with CE and i selected one of the Hotkeys that the "MainMenu" of Cheat Engine form when creating Trainer...
So, when i tried to use the Hotkey in game the trainer doesnt recognize that i pressed a Hotkey, but if i select the trainer the Hotkey works and it sends to the game, everything works but only when i select the trainer, its related when trainer on Top of Game window and that stuff, pls if you know a code in Lua that force the Trainer to recognize the Hotkey even if its not on Top, or if i can make Trainer always on Top or something like that so the Trainer can recognize my Hotkey.

Note: Normal Hotkeys of Cheat Engine can be recognize but only the Hotkeys of "MainMenu" tool in CE form.



Screenshot_27.png
 Description:
This is a Picture "MainMenu" tool in Cheat Engine Form i was talking about
 Filesize:  51.34 KB
 Viewed:  913 Time(s)

Screenshot_27.png


Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Mon Jun 12, 2023 9:31 am    Post subject: Reply with quote

Perhaps there is a conflict with another hotkey. Try adding modifiers like CTRL, ALT or Shift, or a combination of them as well.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Jun 12, 2023 11:59 am    Post subject: Reply with quote

shortcuts are not hotkeys
shortcuts only work when the form has keyboard focus

Use createHotkey(function() CETrainer.SaveSlot1.doClick() end, VK_F5)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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