Control your mouse and Golang keyboard?

How could one control the receipt / installation of mouse position and trigger keyboard events at the operating system level / X 11? This is similar to the functionality found in the Robot class in Java .

I understand that, most likely, this will not be a cross-platform solution, but how to implement it on Windows, Linux and Mac?

+4
source share
3 answers

See robotgo , Golangian cross-platform automation system

+3
source

There are many ways to solve this problem.

The closest thing to what you describe is ui "

, go, SDL, .

, GTK, QT, FLTK ( X11, BurntSushi5, .) github .

+1

ncurses bind is the easiest solution I've found, all the rest are part of the graphics or game engines

+1
source

All Articles