I’ve previously used AutoHotkey to send keystrokes and mouse clicks to automate interaction with GUIs and browsers. How do I send keystrokes and mouse clicks this time using Scala?
I’ve previously used AutoHotkey to send keystrokes and mouse clicks to automate interaction with
Share
You can use
java.awt.Robot.Note that you have to enter text keycode by keycode (see
java.awt.event.KeyEvent). This is pretty annoying, but you can write code to automate the pressing and releasing of keys. (You do need to release every key you press! It’s emulating the keyboard….)