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 


"Change Hotkey Keys" [WIP]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4184
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Jun 21, 2017 11:52 am    Post subject: Reply with quote

You didn't create any hotkeys. You need them in the first place.

"Change Hotkey Keys" extension doesn't automatically create those. It allows to change already existing hotkey keys.

So, you have to add hotkeys yourself. In your case you can use Lua function createHotkey.

Then, instead of buttons with caption "Hotkey" just add another group of Labels or other controls with caption/text property.

I removed buttons, added labels. I made hotkeys like this:
(note: tr variable is another reference to MyTrainerV1,
just to make lines shorter and easier to read)
Code:
hk1=createHotkey(function ()   tr.CECheckBox1.Checked = not  tr.CECheckBox1.Checked end, VK_CONTROL, VK_NUMPAD1)
...
hk14=createHotkey(function () tr.CECheckBox14.Checked = not tr.CECheckBox14.Checked end, VK_MENU, VK_NUMPAD4)



and now you can use my extension functionality:
Code:
addChangeHotkeyKeysFunctionality( tr.CELabel_hotkeystring1  , hk1  )
...
addChangeHotkeyKeysFunctionality( tr.CELabel_hotkeystring14 , hk14 )



hotkeysSettings('scarface010305\\MyTrainer Version 1')
hotkeysSettings('load')


and hotkeysSettings('save') inside FormClose function. Also it is a good idea to move form_show(MyTrainerV1) after last addChangeHotkeyKeysFunctionality line.


At the end I pasted my "Change Hotkey Keys" extension script at the very beginning of your script.


Here, your CT file: https://workupload.com/file/r6asaUN
your original file here: https://workupload.com/file/WjvFufW

my extension changes this

into this

_________________
Back to top
View user's profile Send private message MSN Messenger
scarface010305
How do I cheat?
Reputation: 0

Joined: 15 Jun 2017
Posts: 8

PostPosted: Wed Jun 21, 2017 4:07 pm    Post subject: Reply with quote

Thank you so much !!

It looks so amazing. Shocked
Thank you for your time and help.

This Feature is so nice Very Happy
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 -> Lua Extensions All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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