You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|ac4686a717||5 months ago|
|example||5 months ago|
|getwindow||5 months ago|
|LICENSE.txt||5 months ago|
|ReadMe.md||5 months ago|
This simple module allows go programs to get the name of the currently active window. It is a wrapper around the GetForegroundWindow() function in the user32.dll library.
This is useful for creating application specific macros or tracking application usage.
It supports both Windows and Linux. Linux requires xdotool.
See example/ for how to use it.
xdotool is basically a hack so I welcome contributions to replace it with a better solution. I also welcome a Mac implementation.
This module is AGPLv3 licensed.