Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire mouse event when XTestFakeButtonEvent called #89

Open
ghost opened this issue Aug 7, 2020 · 0 comments
Open

Fire mouse event when XTestFakeButtonEvent called #89

ghost opened this issue Aug 7, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 7, 2020

Background

Sikuli is an automation framework that relies on Java's Robot class to simulate mouse events. KmCaster is a Java desktop application based on JNativeHook that shows keyboard and mouse events on-screen.

Problem

The simulated mouse events from Sikuli do not trigger in KmCaster, although keyboard events do.

Technical

The OpenJDK's Robot class relies on a RobotPeer implementation, which calls XTestFakeButtonEvent. It appears that libuiohook's post_event.c calls XTestFakeButtonEvent to send mouse presses to X11, but doesn't seem to offer a hook to listen for mouse presses from X11 sent via XTestFakeButtonEvent.

Feature Request

Although an infinite loop could loom without due care should both sending to and listening for XTestFakeButtonEvent calls be enabled, having a way to percolate simulated X11 mouse events to applications would be useful when interacting with automation frameworks (Selenium may have the same issues as Sikuli).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants