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 


Cheat Engine Forum Index
PostGo back to topic
mgr.inz.Player
I post too much
Reputation: 221
Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Dec 20, 2016 10:42 am    Post subject: "Change Hotkey Keys" [WIP]

This extension adds "Change Hotkey Keys" window.
Status: WIP

Note:
If any bugs, please report.
For the first two persons who upload their CT trainer file here,
CT with custom form and working Lua script, I will re-post it back with needed changes, so we can treat them as "real world example".



Usage:
Code:
changeHotkeyKeys(hotkey, control OPTIONAL)
It will open "Change Hotkey Keys" window allowing you to change hotkey keys.
You can use GenericHotkey and MemoryRecordHotkey.
If control is provided it will update with current hotkeystring.



addChangeHotkeyKeysFunctionality(control,hotkey)
It will bind control and hotkey. Small button will be created on the left side of control.
If control is a CheatComponent (class "tcheat") button will be on next to description part.
Clicking this button will open "Change Hotkey Keys" window for hotkey.



hotkeysSettings(action)
Special function for all hotkeys registered with addChangeHotkeyKeysFunctionality

Depending on action you can:

hotkeysSettings('load') - load keys for each hotkey from the registry

hotkeysSettings('save') - save keys for each hotkey to the registry

hotkeysSettings('path\\to\\the\\settings') - you can define hotkeys settings path



Example:
Code:
function CloseClick()
  hotkeysSettings('save')
  closeCE()
  return caFree
end


addChangeHotkeyKeysFunctionality(CETrainer.CHEAT0, memrec0_hotkey0)
addChangeHotkeyKeysFunctionality(CETrainer.CHEAT1, memrec1_hotkey0)
addChangeHotkeyKeysFunctionality(CETrainer.CHEAT2, memrec2_hotkey0)
addChangeHotkeyKeysFunctionality(CETrainer.CHEAT3, memrec3_hotkey0)

hotkeysSettings('mgr.inz.Player\\POP:SOT')
hotkeysSettings('load')





_________________
Dark Souls II Item Swap and Item List
My Borderlands2 tables

Recent CheatEngine builds
Back to top
View user's profile Send private message MSN Messenger
Post reviews:   Approve 2
Author Review
ByTransient
Review: Approve
Post reference:
ReviewPosted: Sun Feb 07, 2021 3:01 am

Your code is unique and organized. Thanks.
That's 170 now. (Y)

Back to top
View user's profile Send private message
Y.A.K.E
Review: Approve
Post reference:
ReviewPosted: Fri Oct 20, 2023 3:48 am

very good
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites