||1 month ago|
|example||1 month ago|
|getwindow||1 month ago|
|LICENSE.txt||1 month ago|
|ReadMe.md||1 month 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.