Listen to Key Events while in Background
Posté: 15 Avr 2019, 17:29
I'm trying to write a C program which listens for key events while running in background and if a specified key is pressed than it should show a message box.
But I have no idea how to listen for key events while using the calculator normally since if you're testing if a key is pressed (isKeyPressed) in a loop the calculator freezes.
I already tried to forward (sending the key event I got with get_event if its actually a key event), but that didn't worked also.
But I have no idea how to listen for key events while using the calculator normally since if you're testing if a key is pressed (isKeyPressed) in a loop the calculator freezes.
I already tried to forward (sending the key event I got with get_event if its actually a key event), but that didn't worked also.