ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Feature Request Archive => Topic started by: Squirrel Havoc on June 25, 2006, 22:44:47

Title: [Req] Disable default key function (or something)
Post by: Squirrel Havoc on June 25, 2006, 22:44:47
Ok, I mapped Note-Off to CapsLock, because I am used to other trackers having it there. But the other trackers disabled that key actually toggling capslock when I hit it. Would it be possible for MPT to do the same?
Title: [Req] Disable default key function (or something)
Post by: LPChip on June 26, 2006, 07:32:05
Good suggestion.

I don't think it will be much of a problem to implement this. Rewbs or Relabsoluness has to answer this though.

Its probably something like:

if key:capslock->press {
   key:capslock->state = key:capslock->state +1
}

Which will initiate another capslock press and then executes the function.
Title: [Req] Disable default key function (or something)
Post by: Diamond on June 26, 2006, 13:01:03
How about doing the same for the ScrollLock key.  I like having it assigned to "Follow Song".
Title: Here the fast solution
Post by: pelya on February 01, 2007, 21:38:17
You may use AutoHotKey http://www.autohotkey.com/ for this - it needs to be configured however.
AutoHotKey script to remap CapsLock to '=' key and ScrollLock to '-' :

CapsLock:: =
ScrollLock:: -

Don't forget to disable AutoHotKey when you exit ModPlug  :wink:
Title: [Req] Disable default key function (or something)
Post by: LPChip on February 01, 2007, 21:39:37
Thats not a workable solution.