Keypress in other application

Is there any way to have a program press a key in another application?

hi,

you can try with java.awt.Robot
(here is a pure java sample, it needs to be adapted…)

i use SikuliX, it needs to be installed , but it simplify some more complex stuff (eg, you give a picture and it find it s coordinates on the screen to click or do some OCR…

1 Like