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 


Is there a way to execute a script/tick checkbox using enter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Arkylina
How do I cheat?
Reputation: 0

Joined: 27 Apr 2021
Posts: 2

PostPosted: Tue Apr 27, 2021 11:03 pm    Post subject: Is there a way to execute a script/tick checkbox using enter Reply with quote

I'm running this cheat table with checkboxes for each script. I can navigate the table using arrow keys, but is there a way to execute the script (tick the checkbox) using the enter key? Currently I have to use the mouse to click the box and execute the script.

I'm very new to CE - any help would be appreciated!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Apr 28, 2021 1:01 am    Post subject: Reply with quote

space should work to toggle them

But if you insist on enter then give them an OnKeyDown event and check if the pressed keycode is 13 and if so, do sender.Checked=not sender.checked

(have the activation code for the checkboxes in OnChange, not OnClick)

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

Joined: 27 Apr 2021
Posts: 2

PostPosted: Wed Apr 28, 2021 6:14 pm    Post subject: Reply with quote

Dark Byte wrote:
space should work to toggle them

But if you insist on enter then give them an OnKeyDown event and check if the pressed keycode is 13 and if so, do sender.Checked=not sender.checked

(have the activation code for the checkboxes in OnChange, not OnClick)



Thank you! Space works as well but thank you for the code snippet!
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