Hi
switching form ubuntu-mate to Mint-mate, I recognized that my script sending keys with xdotool does not work anymore.
I.e. I want to send some "key down" strokes to "mate-screenshot" but nothing happens, although Window ID is correct.

Did this behaviour got something to do with the mate version (former 1.16 now 1.20)? (using a diff. gtk version now?)

As per the xdotool manual, it uses a different protocol for sending keystrokes to other windows than the active one and that this will likely fail. I've never seen it work but maybe smurphos knows more.

But my old script had worked also all the time on 16.04 Ubuntu-Mate.
So somehow it must (have been) worked sending keystrokes to other windows.

It might be due to a change in xdotool or X server, I don't know. I'm not regularly using xdotool so I'm not aware of the history, that's where maybe smurphos can provide more insight since he said he's experienced with it.

Thanks. This works for me now on Mint19Mate , activating first the window.

But my old script had worked also all the time on 16.04 Ubuntu-Mate.
So somehow it must (have been) worked sending keystrokes to other windows.

Greetings!

I am using xdotool for a special project (display/hiding of a tablet-like panel), and happened to look just now at the manual re. keyboarding. Afaict, the correct syntax for your "key Down" function, per the manual, s/b "keydown" (all lower case, no spaces). Worth a try to correct your script's syntax?