They also have a utility called Window Spy for getting any needed information about the destination window, such as name or handle. In your case, add a copy of the snippet into your script for each key or key combo you wish to capture and modify the MozillaUIWindowClass to whatever app you wish to receive the keystrokes. In their example (shown below), they are capturing Ctrl+L and sending it to Firefox. I'd start with something like the accepted answer in this Stack Overflow post which solves a similar problem of intercepting a key press globally and sending it to a specific window. If you're up to putting some work into it, you might try AutoHotkey, which allows you to script and automate lots of things on your PC. In newer version of Windows 10 (version 1903, at least on my PC) there's a built-in toggle button to let you select which app responds to media keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |