keysender is a simple program that can be used to send artificial keypresses to any X window. See the README for more information, or download it and try it out.
I'm working on a program called mousetrap to interface with x10's MouseRemote. It takes
adantage of the FreeBSD moused's support for the MouseRemote.
Right now, it sports a plugin architecture and a simple config file. It can
currently control the FreeBSD mixer, XMMS,
enable and disable the X screensaver, and run arbitrary commands. Other planned
features include the ability to send KeyEvents to applications (to control, for
example, MPlayer and realplay), and the ability to schedule 'alarm' events (for
example, starting your mp3 player in the morning to wake you up).
Unfortunately, I have some more work to do before it's ready for release.
After I clean it up a bit, I plan to release the source code I use for my Bookmark page