Windows
KeyEmitter
A no-framework Win32 GUI tool that attaches to chosen windows and emits a configurable sequence of function-key presses (F1–F12) on user-defined intervals, looping for a set count or forever. It supports multiple independent profiles in a single instance — each with its own target window, key sequence and run state — so you can drive several applications at once. Great for keeping games or apps "active".
Build from source: download
KeyEmitter.cpp and build.bat, then run build.bat in the folder (requires MinGW-w64 / g++). Free and open — no installation needed.
heYYape