![]() Even if you use KeyTweak to make the registry entries for you, KeyTweak does not need to stay running all the time (unlike AutoHotkey). If you choose to make the registry entries manually (explained below), absolutely no external software is needed to remap your keyboard.For example, it works in a broader variety of games, it has no known alt-tab issues, and it is capable of firing AutoHotkey's hook hotkeys (whereas AutoHotkey's remapping requires a workaround). Registry remapping is generally more pure and effective than AutoHotkey's remapping.Let me quote it (w/o blockquote to preserve formatting) and fix some links along the way: (Then you should figure out why I haven't used AHK remapping in my example.) It may be not useful in your case (unless you're ready to "lose" some keys), but it's still worth reading. In AutoHotkey's Remapping Keys and Buttons page you can read about other way of assigning keys to keys, remapping. ![]() Remapping via the Registry's "Scancode Map" / KeyTweak ![]() exe file (pretty big, but it's like complete autohotkey) that you can share w/ others or add to autostart for instance. You can do it using Right Button Mouse on the file and choosing Compile Script. For better convenience I suggest compiling such script. You'll get H icon in systray allowing you to interact w/ the script, particularly: suspend hotkeys, pause script (not useful here) or just exit it. ahk file, paste above code in it (w/o useless MsgBox, of course), save and double click to run it. invokes message box greeting AHK world (just to show non-oneline key-commands mapping ending w/ return) Then you'll be able to assemble simple AHK script, e.g. In this case you should look particularly at following pages: Hotkeys (Mouse, Joystick and Keyboard Shortcuts), List of Keys, Mouse Buttons, and Joystick Controls and Send / SendRaw / SendInput / SendPlay / SendEvent: Send Keys & Clicks. Don't forget to download, install and fiddle with it yourself. To learn about AHK I recommend checking its site, pages mentioned in Quick Reference and especially skimming at least AutoHotkey Beginner Tutorial. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language. The short of it: Make sure Gnome is configured to recognize your key and enable the QL plugin.AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Windows that allows users to automate repetitive tasks. In Quod Libet you will need to enable the "DBus Multimedia Keys" plugin to make it work there too. After that it should work for players like Totem, Rhythmbox, Banshee et al. When you figured it out you can go to "System→Preferences→Keyboard Shortcuts" and try to set "Play (or Play/Pause) to your Fn-Combo. It might be that your Fn combo sends a different signal. In xev it does not even display because it is already mapped as a global shortcut (all it displays is "NotifyGrab", i.e., the key is grabbed no matter what app is focused). On my laptop the Fn-DownArrow combination already emits the XF86AudioPlay signal, which is automatically used as the Play/Pause media button. Just start "xev" in a terminal and then press Fn Tilde and look for the name of the button that will be displayed in the output on the terminal. To get your button to act as the Play/Pause button for media apps you have to ascertain what signal it emits. Most likely you would have to dig into Quod Libet's source code and modify it so that it could be controlled while it is running.ī) It's beyond my area of expertise.Well, I don’t think all that is necessary. You would have to create a script that caused the focus to shift to Quod Libet (which shouldn't be that hard), and then trigger Quod Libet's button (and I doubt you can access its buttons via a script while its already running).
0 Comments
Leave a Reply. |