LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I send keyboard input to multiple windows simultaneously? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-send-keyboard-input-to-multiple-windows-simultaneously-4175587877/)

linuxs64 08-24-2016 12:11 PM

How do I send keyboard input to multiple windows simultaneously?
 
Real world application:

I run multiple game windows using wine, so I would like to press a key in an active window and have the same key sent to few other windows simultaneously (multi-boxing). These other windows could be background or minimized.

Been searching for some time, but couldn't really pin down on what works. Wine does NOT support global hotkeys, and MS Win multiboxing softwares (autohotkey, hotkeynet, ISBoxer etc) don't really work in WINE.

would xdotool work from the main/active game window?

thank you

Rinndalir 08-24-2016 04:14 PM

I wonder if Screen might do what you're asking. It's a multiplexer but I don't recall if it can send input to all screens. There's tmux also but I know less about that.

linuxs64 08-31-2016 05:05 AM

found the solution, using a combination of bbkeys and xdotool, i can grab and send to predefined windows, including minimized windows.

So, multiboxing in linux works, in a way.


All times are GMT -5. The time now is 12:20 PM.