How do you send keyboard input to a program?
That is, under a Linux GUI, is there a good manual (programmable) way, or tool, of simulating keyboard input on a running pr
It's an old topic, but one still may be looking for this, someone mentioned here solution where window must be activated when using xdotool. However you can specify window and even use xdotool to find it. Here is example I tried to accomplish, change it as you need.
xdotool key --window $(xdotool search --name "Spotify (Premium |Free )?- Linux Preview" | head -n1) ctrl+KP_Down