Questions tagged [global-hotkey]
72 questions
9
votes
1 answer
Binding some global hotkeys fails on Windows 10
I'm a longtime Windows user who really likes to customize his Windows with lots of different utilities (some written by myself in Python) and AutoHotKey scripts. These all use global hotkeys for their functionality.
I was recently forced to upgrade…

Ram Rachum
- 84,019
- 84
- 236
- 374
9
votes
1 answer
C# global keyboard hook, that opens a form from a console application
So I have a C# Console Application with a Form, which I want to open using hotkeys. Let's say for example Ctrl + < opens the form. So I got the code to handle a globalkeylistener now, but it looks like I failed by implementing it. It made a while…

Craiy
- 143
- 1
- 1
- 9
6
votes
2 answers
Global Hotkey does not work in Fullscreen game
I am creating a program for taking screenshots of a game, out of the game. When I press the hotkey it works, but with the open game in fullscreen it does not detect the key.
My code:
protected override void WndProc(ref Message m)
{
const int…

Marlon Roberto Colhado
- 99
- 1
- 8
6
votes
0 answers
WPF Global Hotkeys / Global Hook Keystrokes
First, I would like to know what is the difference between Global Hotkeys and Hook Global Keystrokes and using them as hotkeys?
Second, I wan to use Global Hotkeys in my application, it will have 2 parts:
1. I will make a window that shows the user…

Ron
- 3,975
- 17
- 80
- 130
5
votes
2 answers
Global Keyboard Hooks (C#)
Possible Duplicate:
Global keyboard capture in C# application
Can anyone help me setup a global keyboard hook for my application?
I want to set hotkeys (such as Ctrl+S) that can be used when not focused on the actual form.
Luke
5
votes
2 answers
key capture using global hotkey in C#
I have a application that runs in the background like i may keep my app in the system tray.If it remains on system tray my app will do it's job. Whenever a user press F10 or F9 some works will be done. i tried this:
public partial class Form1 :…

ImonBayazid
- 1,066
- 3
- 16
- 41
5
votes
4 answers
Capturing a key without focusing the window
I have a application that always checks if a key like F12 is pressed. It doesn't need to have in focus of my main window of my app. I tried this code:
public int a = 1;
// DLL libraries used to manage hotkeys
[DllImport("user32.dll")]
…
user2173270
4
votes
1 answer
Registering Global Hotkeys on a mac?
I'm writing an app with Titanium Developer which lets me use Javascript, PHP, Ruby and Python. It provides an API with certain standard features one might want but one that's lacking is global events.
Now I want to assign global hotkeys to my app…

Naatan
- 3,424
- 4
- 32
- 51
4
votes
1 answer
Global Hotkey for Firefox
Is there a way to add hotkeys (such as the media buttons) for the webbrowser?
This would need to cause a javascript event.
I except a firefox extension is required and i am ok if the solution requires greasemonkey as well (i seen growl use them…
user34537
3
votes
1 answer
Using RegisterHotKey to register hot key using Numpad
I have used RegisterHotKey for registering a global hotkey for my application.
I need to register Control + Shift + 0 (in numpad) for the application.
I have registered it using the below code snippet:
RegisterHotKey(_mainWindowHandle, 1,…

Pratik Bhattacharya
- 3,596
- 2
- 32
- 60
3
votes
1 answer
python qt wait in background for hotkey
I'm building a qt app in python. One of the things that I need to do is wait in the background for a key combo like ctrl+b of something like that and then doing something with the currently active window.
Is there a simple library that can do this?

qwertymk
- 34,200
- 28
- 121
- 184
3
votes
2 answers
How to create a global hotkey on Windows with 3 arguments?
Just like Ctl, Alt + delete
I want to write a program, which uses global hotkeys with 3 or more arguments in python. The assigned function should only perform when I press all three keys on my keyboard. For example alt, windows and…

helloworld1234
- 33
- 1
- 6
3
votes
1 answer
Can we register global hotkeys for a browser
We want to register browser events even when the browser is minimized or not in focus. For example, suppose we are doing something in Microsoft Word and if we press a key on the keyboard (which is not associated with any shortcut of Word or the…

user1831431
- 49
- 2
3
votes
1 answer
Gsettigs and dconf to set hotkey
Hello I need to set a hotkey in ubuntu 12.10, i use
gsettings(dconf)
~$ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ binding…

Mike Minaev
- 1,912
- 4
- 23
- 33
2
votes
1 answer
Using global hotkeys in Powershell
I'm currently making a very basic script that takes a screenshot of the computer every 10 minutes.
However, I've now been asked to also add in the option to click a hotkey to activate it manually.
I found this, which essentially helps me some of the…

wads
- 123
- 11