You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 RobotPeerimplementation, 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).
The text was updated successfully, but these errors were encountered:
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 aRobotPeer
implementation, which calls XTestFakeButtonEvent. It appears that libuiohook's post_event.c callsXTestFakeButtonEvent
to send mouse presses to X11, but doesn't seem to offer a hook to listen for mouse presses from X11 sent viaXTestFakeButtonEvent
.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).The text was updated successfully, but these errors were encountered: