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]

 
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: 140

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

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

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')







changeHotkeyKeys.lua
 Description:

Download
 Filename:  changeHotkeyKeys.lua
 Filesize:  6.52 KB
 Downloaded:  198 Time(s)


_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 140

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

PostPosted: Mon Jan 16, 2017 5:18 am    Post subject: Reply with quote

No feedback? Weird.
_________________
Back to top
View user's profile Send private message MSN Messenger
++METHOS
I post too much
Reputation: 72

Joined: 29 Oct 2010
Posts: 3537

PostPosted: Mon Jan 16, 2017 9:08 am    Post subject: Reply with quote

I've not had a chance to check this out yet. I did see your previous post regarding your changehotkey script. I think it's very useful. I am a loser with LUA, so some of these things take me a minute to figure out still. Very Happy

That said, if I ever get around to writing another trainer, I'd like to incorporate this feature.
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
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