Questions tagged [global-hotkey]
72 questions
1
vote
1 answer
How to monitor desktop environment mouse event in gtk programming
In GTK programming, how to monitor desktop environment mouse event while the GTK application is not active, i.e, the mouse is focus on other GTK application?

Jeff Yang
- 11
- 4
1
vote
2 answers
How to implement Global Hotkeys in C#?
I need to write an application which globally intercepts Alt+Shift+S.
What I did is I created a DLL which sets global hooks:
namespace Hotkeydll
{
public class MyHotKey
{
public static void setHooks()
{
…

michaels123
- 59
- 1
- 4
1
vote
0 answers
Get KeyDown and KeyUp info on global hotkeys c#
I registered global hotkeys as described here in c# How do I detect keyPress while not focused?
but it just detects if the button is pressed, but I need to know when the key is pressed down and when it is released again.
user3717941
1
vote
1 answer
Nodejs global hotkey execution
I was wondering if anyone could point me in the right direction. I'm building a Node app that I want to execute some hotkeys on the computer it's running on to start & stop an OBS stream based on hotkeys.
I was wondering if this is possible as I've…

Max Danielson-Lyons
- 11
- 2
1
vote
2 answers
How to make an Autohotkey automatically run at startup?
I tried to create simple .ahk script for remapping RightControl on AppsKey (win context menu). I've just put RCtrl::AppsKey in file.
It's working after I launch it, but it doesn't automatically start with Windows. I tried it with AllUsers\..\Startup…

Yuriy Rozhkov
- 117
- 1
- 11
1
vote
0 answers
nw.js (Node-Webkit) - Global Hotkeys containing a space fail to respond
Using the Synopsis snippet from https://github.com/nwjs/nw.js/wiki/Shortcut, The global hotkey works as expected. Modifying the key as follows:
key : "Ctrl+Alt+Z" works as expected.
key : "Ctrl+Alt+Space" does nothing.
key : "Ctrl+Alt+ " does…

gihrig
- 51
- 1
- 10
1
vote
0 answers
Global hotkey - Copy own Text into Clipboard C#
Is there any existing class which can insert a predefined text after pressing a predefinded hotkey like ctrl + g? This should work when the application minimized, too.
Best regards,
Edit: Thanks for linking me this thread. Whenever i try to import…

user3850699
- 65
- 1
- 5
1
vote
1 answer
Multiple global hotkeys in C# console application
To register global hotkey in console application in C#, I am using the code posted here:
https://stackoverflow.com/a/3654821/3179989
It works perfectly, but when I add multiple hotkeys, pressing one hotkey will result in running all of the…

NESHOM
- 899
- 16
- 46
1
vote
1 answer
Add a global Windows hotkey without a running application
I want to create a global hotkey to launch my application even if it's not running (without a background process).
From what I've read, RegisterHotkey requires a process to be running to pick up the hotkey message.
I tried using…

nik3daz
- 111
- 1
- 7
1
vote
0 answers
Registering global hotkeys with only commandline
Is it possible to bind a hotkey and wait for a certain key combination but globally so that I can be in other applications and still use the hotkey.
The project is specifically for windows OS so a OS dependant solution is fine.
This is a really…

JohnM
- 105
- 10
0
votes
1 answer
Sending hotkeys to program in background
I want to make in my application, than when this application is in background, when I will click F10, the function with loop will be start.
This is my code:
namespace test
{
public partial class Form1 : Form
{
…

cadi2108
- 1,280
- 6
- 19
- 43
0
votes
0 answers
Hotkeys disable Debian 10
I have Debian based linux and i need to disable hotkeys. Once upon a time i found working advice for hotkeys disable, but i lost it. In advice was something like this:
Create separate config file
Add section with containth "Disable" =…

Vovsla
- 1
0
votes
0 answers
nim - Windows - how to check for system wide hotkey press?
My background app needs to respond to several (3 or 4) system wide hotkeys.
I'm using the nim autome package (https://github.com/miere43/autome), but it doesn't respond well to the 2nd and 3rd registered hotkey. When pressing the first registered…

IvanS
- 31
- 4
0
votes
0 answers
RegisterHotKey fails and GetLastWin32Error returns ERROR_INVALID_FLAGS
I am trying to write a C# script that runs in background in tray and when triggered by a global hotkey it does some job but I cannot get around setting a hotkey.
The problem is RegisterHotKey returns false and fails no matter what hotkey combination…

Armin Gh
- 1
- 1
- 1
0
votes
1 answer
WPF NHotkey global hotkey only runs when window is focused
On my C# WPF project that runs in the background from the system tray I installed a package called NHotkey to try and turn my keyboard hotkey into a global hotkey that works even if the window isn't up: https://github.com/thomaslevesque/NHotkey
And…

SilentNightx
- 37
- 4