Airclick Interface Script
I needed a remote control for my PC, and a friend had found a cheap little RF remote that seems to get the job done: the Griffin Airclick. The remote has been discontinued but you can still find it very cheap. I got mine off ebay for $8 shipped. I use Windows 7 64bit, and it just so happens that the software for the remote does not work in Vista 64 or Windows 7 64. Knowing the remote had been discontinued, I needed to make my own interface for the device.
The remote shows up in Windows as an HID device, so I figured there was some way to communicate with it. I searched the internet and came up with a solution. Using a great little program called AutoHotKey and working off examples and scripts from other users. I created a script that will interface with the Griffin Airclick USB to simulate windows media keys, and allow the Airclick to function in any operating system that AutoHotKey can run in.
The script has a simple HUD to give you response when a key press is successful, and in addition to controlling volume, play/pause, previous/next, the script will also put your computer to sleep if you hold down the volume down key for a few seconds. If this function is used, before sleep the system volume is set at 20%, so that, if you have an alarm that wakes your computer from sleep (like me) the music will be audible.
You can download the script file, and compiled version below:
Just set the compiled script to start-up when Windows starts by putting it (or a shortcut) in the startup folder of the start menu. The remote works in winamp, VLC, PowerDVD, media player classic, WMP, and any media player using windows media keys.
To those of you with itunes, you may want to use ITunesControl to send media keys commands to Itunes when it is not focused. This will allow you to control Itunes with the griffin airclick even when it is not focused.
You can also use AutoHotKey to replace programs like Intellipoint for Microsoft Mice, or SetPoint for Logitech Mice. I figured I was going to have this script loaded in the background anyway, so I added some extra functionality to my mouse precluding the need for any extra software from the hardware manufacturer, and AutoHotKey is much more configurable than either of the programs mentioned above.
I have assigned my tilt wheel to go forward/back, the fourth mouse button to behave as the middle mouse button (since that is hard to press on most mice), and the fifth mouse button will close either a tab in Google Chrome or a whole program, depending on the context. I have also added media keys to the mouse that can be accessed by holding down the fourth mouse button. The scrollwheel controls volume, the tiltwheel moves tracks forward/back, and left mouse button play/pause (All in combination with the fourth mouse button held down). You can look at my script and easily modify it for your uses. You can download the script I use for both the Griffin Remote and my mouse below:
Griffin Airclick AutoHotKey Script w/Mouse Controls (AutoHotKey and AHKHID script required)