hotkeys

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

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

Best way to tackle global hotkey processing in c#?

Hi all I'd like to have multiple global hotkeys in my new app (to control the app from anywhere in windows), and all of the given sources/solutions I found on the web seem to provide with a sort of a limping solution (either solutions only for one g.hotkey, or solutions that while running create annoying mouse delays on the screen). Do...

Is there a way reformat code in FlashDevelop?

Is there a way to reformat code, i.e. force correct indentation in FlashDevelop as you can do with CTRL-SHIFT-F in Eclipse? ...

Visual Studio: hotkeys to move line up/down and move through recent changes

I'm moving from Eclipse to Visual Studio .NET and have found all my beloved hotkeys except two: in Eclipse you can press ALT-(leftarrow) and ALT-(rightarrow) to visit recent changes you have made, something I use frequently to go back to where I was in some other file and then return. Apparently in VS.NET the CTRL-(minus) and CTRL-SHIF...

How to free up a key combination in visual studio?

I want to assign a hotkey to a function, but the keys are already used in some other functions' combination. How can I easely remove this hotkey from all these entries so I free it up and am able to asign it to the function I want? ...

Proper way of creating a background hotkey with WPF C#? (preferably without using legacy code)

I need to be able to set up a background hotkey event for a WPF application. (by background I mean that the application in question might not necessary be in focus). I know that with WinForms the proper way of doing it would be to import user32.dll, and use RegisterHotKey, and the catch the appropriate WM_POST message. I'm convinced t...

C#: How to capture global mouse/HID events

I wish to write a small tool that will capture a global event when the user presses the Windows button and scrolls the mousewheel up or down. When such an event is captured, I wish to redirect said output to a virtual keystroke combination of Win-+ or Win-- (plus/minus). Can this be done? If the windows key is reserved, ctrl-alt or ...

Global HotKeys in Win&X11 with Python

Hello! I need to make a global hotkey for my application, and it should work under X11 and Windows. Programming language: Python. Thanks. ...

What's the easiest way to make a hotkey for windows?

For example , you push ctrl+v and insert the buffer content into the window. How can I create my own hotkeys like that? Sorry for noobish question. ...

Register hotkeys in Linux using library for c++

Hi guys, are there any libraries for linux wroted in C++ which could register global hotkeys for my application? Thanks. ...

Binding to Media keys on Apple keyboards under OSX 10.5

I am fairly new to OSX development, so this may be easy but google has not been helpful. I am trying to bind an action to the media keys you find on newer Apple keyboards (Play, Pause , etc). It appears that you cannot bind to these keys using the regular hotkey API but it must be possible since iTunes clearly manages. Is there some tr...

jquery tabindex/focus & hotkeys

There seem to be some problems with tabindex in several browsers so I want to work around these issues using javascript/jquery. Specifically FF3.5 (Mac) doesn't accept tabindex or focus on links at all. I have jquery 1.3.2 and js-hotkeys 0.7.9 running on my website. I have 4 forms on 1 page which I can switch between using a link. Now ...

Why does Visual Studio hog my other programs' hot keys?

I have found, consistently, that if I use something like Switcher (highly recommended), or Toastify (both are programs that rely on the use of global hot keys to work) that when Visual Studio 2008 has focus none of the hot keys for the other applications work. Does anyone know why this might be and how to fix it? ...

How to write my own Global Snippets program with .NET?

I want to write my own global snippets tool for Windows XP and higher. This would be an always running in the background tool that would pop-up on a globally-defined hotkey, allow me to select a snippet with substitution arguments, and then paste the expanded snippet into the text input of whatever control I had been in when activated i...

Setting Mnemonics and Hot Keys for a JOptionPane Dialog

Is it possible to assign hotkeys and mnemonics to the buttons in a JOptionPane Dialog? I'd like to be able, in a JOptionPane generated message dialog with the options Yes, No and Cancel, press Y to hit the Yes button, N to hit the No button and escape to activate the escape button. Similarly in a dialog with Okay and Cancel buttons I'd...

jquery + firefox: hotkey problem

hi, i've recently implemented jQuery UI into my testcase and experiecend some strange behaviour with firefox. it seems like something in jQuery (i'm only using the dialog widget currently) is blocking global hotkeys from firefox (v3.54). eg. ctrl-R for refresh fails to work. anyone who knows about this/how to fix it? thx, fuxi ...

How to prevent a Beep sound if global keyboard shortcut is pressed in the other application?

Mac OS X 10.6 — Cocoa I'm using global event monitor for displaying status item menu using custom keyboard shortcut: globalEventMonitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(NSEvent *event) { if ([event keyCode] == kVK_F12) { [self handleGlobalShortcut]; // How to prevent syste...

How can we detect hotkeys registered by other apps?

Is it possible to detect all the hotkeys registered by the OS as well as software applications currently running? Any native or managed approach on the Windows platform? I know that the RegisterHotKey function returns false if the hotkey is already registered, but what I am looking for is an approach, method, etc. that will give me a lis...

ProcessCmdKey - wait for KeyUp?

Hi, I'm having the following issue in a WinForms app. I'm trying to implement Hotkeys and I need to process Key messages whenever the control is active, no matter if the focus is on a textbox within that control, etc. Overriding ProcessCmdKey works beautifully for this and does exactly what I want with one exception: If a user pr...

JQuery Hotkeys: Is there a way to bind hotkeys that work even inside an input element?

I've been using JQuery hotkeys to make an internal tool for a team of developers. It'd be nice for them to be able to navigate through the entire page using only the keyboard, but I've been having problems when they end up in input fields. Is there a way to bind a hotkey and make it work even inside an input element? I got my jQuery-h...