xlib를 사용하여 키 누름 이벤트 캡처 (capture key press event using xlib)


문제 설명

xlib를 사용하여 키 누름 이벤트 캡처 (capture key press event using xlib)

F1을 캡처하려고 하는 동안 문제가 있습니다. 캡처할 수 없습니다. 시스템 후크가 내 프로그램보다 먼저 "도움말" 내용을 표시하면서 실행되었기 때문입니다. 누군가 나를 도울 수 있습니까? 시스템 후크 전에 내 후크를 실행하는 방법이 있습니까? Linux에서 Xserver는 후크를 실행할 때 동일한 키 누름 이벤트에서 다음 후크를 실행하지 않습니다. 도움이 될 수 있습니다.


참조 솔루션

방법 1:

There is no “system hook” in X, just programs that started before yours and already grabbed the key (in this case, probably the window manager). If this is just for your use, change the configuration of the other program. If this is a program you're making for others, you'll need to make your keys configurable anyway, since you never know what keys the users have already assigned to other applications to use, and they're more likely to discard your app if you try to force your keybindings on them.

(by Tinaalanc)

참조 문서

  1. capture key press event using xlib (CC BY‑SA 3.0/4.0)

#capture #xlib #key #keypress #x11






관련 질문

Java 제네릭: 캡처를 사용한 컴파일 실패 (Java generics: compilation failure using captures)

Python 함수 호출에서 stdout 출력을 캡처하는 방법은 무엇입니까? (How to capture stdout output from a Python function call?)

캡처한 이미지 캡처 및 공유를 구현하고 싶습니다. (I want to implement capture and sharing captured image)

Ambilight용 Python 화면 캡처(더 적은 리소스 집약적) (Python Screen Capture for Ambilight (less resource intensive))

Windows에서 "비디오 컨트롤러"에 대한 Java 액세스 (Java Access To "Video Controller" In Windows)

libpcap으로 PPP 패킷을 스니핑하는 방법은 무엇입니까? (How to sniff PPP packet with libpcap?)

DVB-T 스틱에서 AVI 파일로 캡처하는 방법 (How to capture from a DVB-T Stick to an AVI-File)

xlib를 사용하여 키 누름 이벤트 캡처 (capture key press event using xlib)

앱에서 HTTPS 트래픽을 캡처하고 싶지만 작동하지 않습니다. (I want to Capture HTTPS Traffic from app but it does not work)

Selenium-wire Python을 사용하여 네트워크 트래픽을 캡처하는 동안 다른 형식의 로그 보기 (Seeing logs in a different format while capturing network traffic using selenium-wire python)

Android 애플리케이션의 특정 프레임 내 자동 촬영 기능 (Auto picturing feature within specific frame in Android application)

안드로이드 스튜디오 캡처 이미지 더 빠르게 (android studio capture image faster)







코멘트