How can I send a key press or key release event to a window (the currently active window) from another program using XCB
?
I found some tutorials using XLib
, however I would like to use XCB
.
I guess I will have to call xcb_send_event
, however I have no idea what to pass it as parameters.
You should be able to use the XTEST extension to fake input to the active window, using the xcb_test_fake_input() function.
See the xte program in xcb/demos for a working example.