Questions tagged [global-hotkey]
72 questions
0
votes
0 answers
Run through events and test if they work in C#
I have a program that makes use of global hotkeys (ALTGR + F1 -> F12):
HotKeyManager.RegisterHotKey(Keys.F1, KeyModifier.AltGr);
HotKeyManager.RegisterHotKey(Keys.F2, KeyModifier.AltGr);
HotKeyManager.RegisterHotKey(Keys.F3,…

wads
- 123
- 11
0
votes
0 answers
Jintellitype Hotkey Declared and configured while developing application code is not working in final .exe file in another device
I am developing a java swing application that performs different actions when buttons are pressed.
For each of the buttons in the application I have configured and unique global hotkey (System Level) for example ALT+C stands for "Clear" This will…

sreekar reddy
- 23
- 5
0
votes
1 answer
Windows Defender is Classifying My Python Script As a Trojan, Why is that?
I wrote a simple python script in which I have used the Python Global-Hotkeys Module to make a simple script which does nothing but wait for some key-combination to be pressed and once the key combination is pressed, the script turns off the…

Aaron Jones
- 72
- 2
- 9
0
votes
1 answer
Global hotkey in Tkinter
I want to add global hotkey (using the pynput module) to my Tkinter script (Random Number Generator). I want to get random number every time I press 'f7' button. It also has to work without focusing on the app. Unfortunately the app is not…

TryToExploit
- 36
- 3
0
votes
0 answers
How to differenciate between registered hotkeys using user32.dll
I have registered two Hotkeys
RegisterHotKey(thiswindow, (uint) WindowKeys.Alt, 1, (int)Keys.D1);
RegisterHotKey(thiswindow, (uint) WindowKeys.Alt, 2, (int)Keys.D2);
Now how do I differentiate between them using:
protected override void…

Max
- 103
- 7
0
votes
1 answer
How to change back and forth application focus with global hotkey in C#
I am creating my own C# clipboard manager and I have a global hotkey, ALT+H, that will trigger removal of text formatting from the clipboard. My application runs in the backend with a tray icon only. As such this is working fine but my problem is…

Beauvais
- 2,149
- 4
- 28
- 63
0
votes
0 answers
How to make customised hot keys in wpf application and perform various operations
How to make customised hot keys in wpf application and perform various operations like making fields editable, save the window, go to a field index.
I am working on a wpf application that holds three windows + 1 main window. I am showing the hot…

coder9090
- 63
- 9
0
votes
1 answer
.NET WPF runtime error after installing with Visual Studio Installer
I'm registering a global hotkey in my WPF application using exactly this approach. It works fine when debugging or running from Visual Studio, but after publishing app with Visual Studio Installer project and installing it on my PC, app throws…

Jarek Danielak
- 394
- 4
- 18
0
votes
0 answers
Global Hotkay is not responding
I'm writing a program to move the cursor with just the arraw keys. The idea is to press the ctrl button and then the arrow keys to move the cursor. I have alreday done the moving bit and figured out how to get a smooth and humen like action. I just…
user11543873
0
votes
0 answers
Programmatically drag and drop a file - VB6
I'm trying to 'Drop' an image file at the current mouse location, FileType PNG (always).
With 'Drop' i mean the same type of functionality as if you were to click and hold an image, then drop it at another location when the hotkey is pressed.
This…

RkdL
- 112
- 11
0
votes
1 answer
c# winforms - is it possible to use global hotkey on multiple applications
In the PDF reader, we switch to the next page with the right arrow button. In my own winforms application, I assigned the right arrow key to the global hotkey and when I press the right arrow key it says "hello world" for trial purposes.
In this…

Johnny Wind
- 151
- 8
0
votes
0 answers
Globalhotkey - Reading the wanted Hotkey from text file
So I'm using GlobalHotkeys to register my hotkeys.
but i want instead of just make a key without being able to change it, so it will be possible to change it from a .txt File.
so tried something like that:
Code
using (StreamReader sr = new…

sdhp442
- 1
- 2
0
votes
0 answers
Interupt a while-loop using a global hotkey in Python
I'm currently stuck on a programme that I'm writing in Python using CV2. The programme works with a while loop, which is triggered by a hotkey. I want to use the hotkey to toggle the programme/ loop on and off. The problem I'm having is that since…

bezunyl
- 61
- 6
0
votes
1 answer
How to define hot keys using if-else?
I want to perform two methods for different pressing of hot keys, checking in if-else what key was pressed
How to do this with this example?
I use so:
private static void Main()
{
HotKeyManager.RegisterHotKey(key: Keys.G, modifiers:…

GooliveR
- 244
- 4
- 10
0
votes
1 answer
SetWindowsHookEx not working properly
I have tried to make a global mousehotkey with SetWindowsHookEx() so when I press the right mouse button it executes some code. My problem is that when the callback function gets executed, it gives me a weird number for the right button that keeps…

Celmos
- 25
- 1
- 1
- 7