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 


Disable cheat also disable hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Rudo
Advanced Cheater
Reputation: 1

Joined: 27 Jun 2015
Posts: 68

PostPosted: Tue Mar 28, 2017 4:52 am    Post subject: Disable cheat also disable hotkeys Reply with quote

So I made a cheat that makes use of a custom flag and I have a hotkey (Ctrl+F1) to enable the flag (set its value to 1).

Is there any way to make CE disable the hotkey option when I disable the cheat? Thanks.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 119

Joined: 09 Jun 2013
Posts: 3209

PostPosted: Tue Mar 28, 2017 5:43 pm    Post subject: Reply with quote

Code:
[ENABLE]
myhotkey = createHotkey(function()
  print("blah blah")
end, VK_F1)
[DISABLE]
myhotkey.Destroy()
Back to top
View user's profile Send private message
Rudo
Advanced Cheater
Reputation: 1

Joined: 27 Jun 2015
Posts: 68

PostPosted: Tue Mar 28, 2017 9:11 pm    Post subject: Reply with quote

Thanks Zanzer, that works.
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 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