Вселенная Кудзу

«Программирование - искусство, воюющее со своими творцами»

Kudzu World  »  Blogspace  »  Kudzu's Tech Blog
English - Română - Русский - عربي

RSS Feed

If you want to more easily stay informed of updates etc you can subscribe to the RSS feed. Just point your RSS reader at this page, auto discovery is enabled.




Using PayPal?
Read this


Using the Apple Wireless Keyboard on Windows

1/1/2008

The Apple Wireless Keyboard (2007) edition is really amazing. But to use it on Windows, there are quite a few important keys missing. Many people have come up with various work arounds, but each one I tried left me feeling lacking. Instead, I have come up with a solution that I believe solves all the issues.

AutoHotKey

AutoHotKey is an amazing utility that lets you remap keys, and key combinations. It even has scripting support. I'm finding that use it now even on the computer without the Apple Wireless Keyboard. To save you time I have already figured out replacements for all the keys.

Keys

I have provided the source as well if you want to change it. However here are the key mappings that I worked out. The keyboard has an Fn key, which seems a great candidate to use. Unfortunately the keyboard does not pass through the Fn key with any scan code to Windows. That is, to Windows it is invisible and I am guessing that the Apple Boot Camp driver either sends a signal to program the keyboard, sends a signal to enable it, or simply reads it from the Bluetooth connection directly. I started out by using the Alt key, but found that the left command key (Windows key) was more comfortable. Since I only use it for key combos, it does not interfere with normal usage. In addition, if it conflicts with some program on your system I have set it to respond only to the left command key while ignoring the right one.

One wonders. What do Mac people do without page up and page down? Do they just like to click? Maybe clicking is more fun with only one mouse button?!?!?

Press Left Windows + this key
It does this
Notes



Navigation and Control


Up
Page Up
 
Down
Page Down
 
Left
HomeAlso works in combination with Shift key for selecting text.
Right
End Also works in combination with Shift key for selecting text.
BackspaceDelete
 
Alt + Backspace
Insert
This means Left Windows+Alt+Backspace. Insert is not used frequently in Windows, but it is important. Thus its not the easiest of mappings, but its the "alternate" of delete.



System Functions


EscapeCtrl-Alt-Delete
Yes I know Ctrl-Esc brings up the Windows menu normally. But with two Windows keys that do this, do you still need Ctrl-Esc as a reserved combination?
TabAlt-TabAlt-Tab actually works on the keyboard. But the Alt and Windows keys are swapped from normal. I found myself constantly pressing Left Windows+Tab anyways. After I shifted to using Alt-Tab, I realized it hurt my hand to force my thumb under my hand and that Left Windows+Tab was not only what had become natural to me with regard to positioning, but is more comfortable too. This is an anti-RSI mapping.



Alternate Function Keys


F10MuteYes I know, its Left Windows+Fx instead of Fn+Fx. But remember what I said about the Fn key not sending a scan code?
F11Lower Volume
 
F12Raise Volume




Extras

GLaunch browser to Google.
Sorry Windows Live, the Windows guys already took Windows+L for lock computer.
WLaunch browser to Wikipedia.

Download

Other Solutions

<< Previous Entry  Next Entry >>

Comments: 

coffeeturtle 2008-01-18 03:12:54
Yea, you can use FN and EJ via HID on Windows. Check out lexikos sample script for autohotkey. Press the keys and you'll see some scancodes. With a comple of if statements you'll have what you need. Tip -- you'll need a pair of boolean variables to track the keystates if you want to do a FN+EJ combination without a double press.
Chad Z. Hower 2008-01-18 07:18:24
Thanks for letting me know! I'll dig into that later, and maybe even write my own program to talk to the HID BT device directly.
Patrick 2008-07-05 02:58:51
WOW thats pretty cool

... i like the most that the Windows+Tab key makes Alt+Tab (mistyped it soo often before ;), and of course that you have now a del-key!!! (can't live without it, theres so much to delete)

greez patrick

NN 2008-08-11 08:40:37
thanks for program..now i can use pg up & down and Home , end key using apple wireless utility...

hehehhe..you don't do any funky things with program...

Mr. Peter 2008-10-02 08:56:43
I found this blog via Google and you're over my head (technically) - is there a way an idiot (moi) can get the Apple Wireless Keyboard (which is really nice) to work with my Treo 700W?

Thanks!

Chad Z. Hower 2008-10-02 01:33:14
I dont know if it will work with the Treo or not. The keyboard is a standard type device, so it depends if the Treo would support it. You have to pair it and see if the Treo picks it up.
name 2008-10-08 10:45:49
if treo supports HID bluetooth profile,yes,and i am pretty sure yes
ps:lots and lots of black/cold guiness for this utility

dbcalo 2008-10-20 06:34:32
The script works great. One thing I'm having trouble with is the Esc key. Normally I would assume it to deselect things but it no longer does this. Any ideas?
Chad Hower 2008-10-20 11:07:48
Not offhand - Esc works here.... Try a dialog or some place you know Esc does something for sure and see if it works.
dbcalo 2008-10-21 07:50:41
It does work in certain instances like canceling a dialog box but for whatever reason it doesn't deselect highlighted text as it usually would.
Chad Hower 2008-10-21 02:42:53
I dont think its the keyboard - likely something else on your system instead. See if a normal keyboard responds any different.

Add your comment: 

Name:    
E-Mail:  
URL:  
Comment:  
Please add 5 and 3 and type the answer here:



Use my contact form to contact me directly.