hotkeys

Global Hotkey with X11/Xlib

时光怂恿深爱的人放手 提交于 2019-11-26 21:48:30
My goal is to have a program that sleeps in the background but can be activated by the user via some "hotkey". From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept does not work. My understanding is that if I call XGrabKey with the root window as the grab_window, and owner_events false, then whenever my hotkey is pressed the event will be sent only to the root window. If I then select KeyPress events from the root window, and then listen for

React on global hotkey in a Java program on Windows/Linux/Mac?

不羁岁月 提交于 2019-11-26 16:20:20
A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box). How do I do that on: Windows (XP or Vista) OS/X Linux (Gnome or KDE) I've compiled a library for global hotkeys in java using JNA. It currently supports Windows, Linux and Mac OSX. It also supports media keys on windows and linux. if anyone is interested, try https://github.com/tulskiy/jkeymaster I would appreciate any feedback. Thank you. For Linux (X11) there is JXGrabKey: http://sourceforge.net/projects/jxgrabkey/ There is also

Eclipse HotKey: how to switch between tabs?

只愿长相守 提交于 2019-11-26 12:19:50
问题 How can I switch between opened windows in Eclipse? There is Ctrl + F6 , but it\'s asking me which one I want, but I want switch it like tabs in browser or window in operating system ( Cmd / Win + Tab ) without file-selection from the list. How to do this easy thing in Eclipse? I\'ve tried to assign hotkey for events: forward forward history next page but it doesn\'t work the way I want. 回答1: CTRL + E (for a list of editor) CTRL + F6 (for switching to the next editor through a list) You can

Customizable Shortcuts in Java Application

依然范特西╮ 提交于 2019-11-26 08:36:14
问题 I would like to include customizable keyboard shortcuts in my Java application (the user can change them). Since this is not very unusual request, I was wondering if there exists a library/project that could help me achieve my goal. Unfortunately I was not able to find anything useful on Google. Thank you, aZen Ended up building my own shortcut manager from scratch. This took around 20h. 回答1: Shortcuts may be specified as accelerators in instances of Action. Less flexibly, shortcuts may be

Global Hotkey with X11/Xlib

扶醉桌前 提交于 2019-11-26 08:03:22
问题 My goal is to have a program that sleeps in the background but can be activated by the user via some \"hotkey\". From digging around the Xlib manual and the Xlib O\'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is incorrect as a simple proof of concept does not work. My understanding is that if I call XGrabKey with the root window as the grab_window, and owner_events false, then whenever my hotkey is pressed the event will be

React on global hotkey in a Java program on Windows/Linux/Mac?

限于喜欢 提交于 2019-11-26 04:46:26
问题 A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box). How do I do that on: Windows (XP or Vista) OS/X Linux (Gnome or KDE) 回答1: I've compiled a library for global hotkeys in java using JNA. It currently supports Windows, Linux and Mac OSX. It also supports media keys on windows and linux. if anyone is interested, try https://github.com/tulskiy/jkeymaster I would appreciate any

How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?

不羁岁月 提交于 2019-11-26 00:53:48
问题 I\'m building an application in C# using WPF. How can I bind to some keys? Also, how can I bind to the Windows key? 回答1: I'm not sure of what you mean by "global" here, but here it goes (I'm assuming you mean a command at the application level, for example, Save All that can be triggered from anywhere by Ctrl + Shift + S .) You find the global UIElement of your choice, for example, the top level window which is the parent of all the controls where you need this binding. Due to "bubbling" of

Set global hotkeys using C#

回眸只為那壹抹淺笑 提交于 2019-11-26 00:21:33
问题 I need to capture a key press when my program is not in focus. (ie. Ctrl + Alt + J ) and trigger an event in my program. Thus far i have found this dll that appears to be the correct path\" [DllImport(\"user32.dll\")]private static extern int RegisterHotKey(IntPtr hwnd, int id,int fsModifiers, int vk); [DllImport(\"user32.dll\")] private static extern int UnregisterHotKey(IntPtr hwnd, int id); 回答1: Please note that this code will not trigger events in console application projects . You have