Lisp program to control Windows Mouse and Keyboard?

Discussion of Common Lisp
Post Reply
methusala
Posts: 35
Joined: Fri Oct 03, 2008 6:35 pm

Lisp program to control Windows Mouse and Keyboard?

Post by methusala » Wed Jul 22, 2009 2:55 pm

Anyone know if there is one? There is a java program called 'robot' which allows you to do that, as well as the AutoHotKey language, but I would like to do that with lisp or scheme instead.

Thanks

methusala
Posts: 35
Joined: Fri Oct 03, 2008 6:35 pm

Re: Lisp program to control Windows Mouse and Keyboard?

Post by methusala » Wed Jul 22, 2009 3:36 pm

Update:
I can my windows program in wine, so the lisp mouse and keyboard controller program would also work if it runs in x windows.

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: Lisp program to control Windows Mouse and Keyboard?

Post by nuntius » Wed Jul 22, 2009 6:53 pm

(the following is untested)

Take a look at the following MSWin API functions.
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx
http://msdn.microsoft.com/en-us/library ... S.85).aspx

Then write a simple CFFI binding to use these from lisp.
http://common-lisp.net/project/cffi/

Post Reply