Skip to content

Clicks and keys from the agent do not reach a Wine window on macOS ​

Symptoms ​

Synthetic clicks and keys from macOS do nothing in the game. A screen-control tool cannot list the Wine window at all.

Cause ​

macOS refuses synthetic events from a process without the Accessibility permission (AXIsProcessTrusted() is false). Wine windows belong to no application bundle, so tools that work by application cannot see them (observed).

What to do ​

Send the input from inside Wine with GameFrame's winput. It is a small Windows program that runs in the same Wine prefix as the game. It finds the game's window, brings it forward and calls SendInput. It sends keys as scancodes, which DirectInput reads. No step needs macOS's permission. Run ./gameframe run winput run --prefix derived/wine window "GAME" key enter.

Clicks work on Windows dialogs. A game that draws its own cursor from DirectInput follows a warped cursor, but may read the press before its cursor arrives: move, wait, then press (winput ... point X Y wait 1000 button; click timing). ./gameframe tool winput lists every step.

Code: Apache 2.0. Content: CC0 1.0. No game material: bring your own copy.