macOS inject mouse events

pedro.estrela

2020-05-31 23:29:25

The manual clearly says mouse event injection is windows only. I use this to change the preferences window of traktor.

https://maps.djtechtools.com/mappings/10575

Just wondering if a) supporting this in macOS is on the roadmap

and/or

b) if you ever heard of any mouse workaround that people did, like (say) having another third party sofwtare that forces a certain window in a fixed location, so that BOME can click there in absolute coordinates

thanks

Steve-Bome Forum Moderator

2020-06-01 02:30:15

I think the way to do it on Mac is with AppleScript which Bome MIDI Translator support on a Mac.. I know the Applescript "tell" and "activate" command can activate a given application.

tell application "application name"

activate

tell application "System Event's"

keystroke "Hello World"

end tell

end tell

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

pedro.estrela

2020-06-01 15:14:47

comment

thanks, sounds definitelly doable. BOME can send variables to applescript, applescript can click applications: https://apple.stackexchange.com/questions/266784/how-do-i-make-the-mouse-click-at-current-location-using-applescript