I post too much
Joined: 07 Nov 2008
Location: W kraju nad Wisla. UTC+01:00
|Posted: Wed Jun 21, 2017 11:52 am Post subject:
|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)
|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:
|addChangeHotkeyKeysFunctionality( tr.CELabel_hotkeystring1 , hk1 )
addChangeHotkeyKeysFunctionality( tr.CELabel_hotkeystring14 , hk14 )
hotkeysSettings('scarface010305\\MyTrainer Version 1')
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