Skip to content

Introduce native mouse/keyboard actions and Electron browser integration#4

Merged
do-gamer merged 69 commits into
masterfrom
native_actions
Mar 16, 2026
Merged

Introduce native mouse/keyboard actions and Electron browser integration#4
do-gamer merged 69 commits into
masterfrom
native_actions

Conversation

@do-gamer
Copy link
Copy Markdown
Owner

@do-gamer do-gamer commented Feb 22, 2026

  1. Implemented native mouse and keys actions which sends via:

    • postActions(long... actions)
    • pasteText(String text, long... actions)

    Related to https://github.com/darkbot-reloaded/DarkBot/blob/master/src/main/java/eu/darkbot/api/utils/NativeAction.java

    Summary
    MouseClick: First try native action via X11 for better reliability. Fall back to legacy flash IPC method.
    MouseMove: Native action via X11.
    MouseDown: Native action via X11.
    MouseUp: Native action via X11.
    MouseScroll: Native action via X11.
    KeyClick: First try legacy flash IPC method, works a bit better. Fall back to sending command to browser.
    KeyDown: Sending command to browser.
    KeyUp: Sending command to browser.
    SendText: Sending command to browser to type text.

  2. Implemented a small red marker to visualize where the bot clicks on the screen.
    image
    Can be enabled/disabled via setCursorMarker(boolean enabled)

  3. Added to repository the Electron browser that is used for the game window

    • implements support browser commands for key actions and type text
    • renamed aplication to darkbot_browser_linux.AppImage
    • fixed loader animation
    • updated title and added version number
      image
  4. Added build script

  5. Improved recovery logic when Flash failed and improved socket connection with browser


Related PR for Darkbot darkbot-reloaded/DarkBot#449

do-gamer added 28 commits March 1, 2026 13:34
@do-gamer do-gamer merged commit c246a3d into master Mar 16, 2026
@do-gamer do-gamer deleted the native_actions branch March 16, 2026 06:21
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

Successfully merging this pull request may close these issues.

1 participant