{"id":73,"date":"2007-09-24T12:46:04","date_gmt":"2007-09-24T17:46:04","guid":{"rendered":"http:\/\/www.efsavage.com\/blog\/posts\/enable_buttons_on_apple_keyboard_in_windows\/"},"modified":"2011-07-22T13:52:58","modified_gmt":"2011-07-22T17:52:58","slug":"enable_buttons_on_apple_keyboard_in_windows","status":"publish","type":"post","link":"https:\/\/efsavage.com\/blog\/posts\/enable_buttons_on_apple_keyboard_in_windows\/","title":{"rendered":"Enabling Buttons on Apple Keyboard in Windows"},"content":{"rendered":"<p>I recently picked up, and am liking, the new &#8220;wafer thin&#8221;  aluminum keyboard from Apple.  Its very small, I like the key action and it&#8217;s very solid considering it&#8217;s size and thickness.  But, I use it on Windows, and there&#8217;s no driver available other than the standard keyboard one, so the extra keys like media controls aren&#8217;t enabled.  I came across a freeware macro program called <a href=\"http:\/\/www.autohotkey.com\/\">AutoHotKey<\/a> that works very nicely, and wrote up a few little scripts for it.  You can download AutoHotKey and run the scripts yourself, or you can download the <a id=\"p74\" href=\"http:\/\/www.efsavage.com\/blog\/wp-content\/uploads\/2007\/09\/enable_mac_aluminum.zip\">compiled version here [enable_mac_aluminum.zip, 193KB]<\/a> and just pop it into your Startup folder.<\/p>\n<p>Commands:<br \/>\nShift-F3: Print Screen<br \/>\nShift-F4: Task Manager<br \/>\nShift-F7: Previous Track (in Winamp or Yahoo! Music Jukebox)<br \/>\nShift-F8: Pause\/Play (in Winamp or Yahoo! Music Jukebox)<br \/>\nShift-F9: Next Track (in Winamp or Yahoo! Music Jukebox)<br \/>\nShift-F10: Mute\/Unmute<br \/>\nShift-F11: Volume Down<br \/>\nShift-F12: Volume Up<br \/>\nWindows-s: Open <a href=\"http:\/\/www.efsavage.com\">http:\/\/www.efsavage.com<\/a> \ud83d\ude42<\/p>\n<p>Here&#8217;s the entire script:<\/p>\n<p><code>#s::Run www.efsavage.com<br \/>\n+F3::Send {PrintScreen}<br \/>\n+F4::Send, {SHIFTDOWN}{CTRLDOWN}{ESC}{SHIFTUP}{CTRLUP}<br \/>\n+F7::<br \/>\nIfWinExist ahk_class Winamp v1.x<br \/>\n{<br \/>\nControlSend, ahk_parent, z  ; Pause\/Unpause<br \/>\nreturn<br \/>\n}<br \/>\nIfWinExist ahk_class YMPFrame<br \/>\n{<br \/>\nSetTitleMatchMode 2<br \/>\nIfWinNotActive, Yahoo! Music Jukebox<br \/>\nWinActivate<br \/>\nWinWaitActive, Yahoo! Music Jukebox<br \/>\nMouseClick, left,  29,  107<br \/>\nSleep, 100<br \/>\nMouseClick, left,  112, 76<br \/>\nWinMinimize<br \/>\nreturn<br \/>\n}<br \/>\nreturn<br \/>\n+F8::<br \/>\nIfWinExist ahk_class Winamp v1.x<br \/>\n{<br \/>\nControlSend, ahk_parent, c  ; Pause\/Unpause<br \/>\nreturn<br \/>\n}<br \/>\nIfWinExist ahk_class YMPFrame<br \/>\n{<br \/>\nSetTitleMatchMode 2<br \/>\nIfWinNotActive, Yahoo! Music Jukebox<br \/>\nWinActivate<br \/>\nWinWaitActive, Yahoo! Music Jukebox<br \/>\nMouseClick, left,  29,  107<br \/>\nSleep, 100<br \/>\nMouseClick, left,  30,  77<br \/>\nWinMinimize<br \/>\nreturn<br \/>\n}<br \/>\nreturn<br \/>\n+F9::<br \/>\nIfWinExist ahk_class Winamp v1.x<br \/>\n{<br \/>\nControlSend, ahk_parent, b  ; Pause\/Unpause<br \/>\nreturn<br \/>\n}<br \/>\nIfWinExist ahk_class YMPFrame<br \/>\n{<br \/>\nSetTitleMatchMode 2<br \/>\nIfWinNotActive, Yahoo! Music Jukebox<br \/>\nWinActivate<br \/>\nWinWaitActive, Yahoo! Music Jukebox<br \/>\nMouseClick, left,  29,  107<br \/>\nSleep, 100<br \/>\nMouseClick, left,  148, 79<br \/>\nWinMinimize<br \/>\nreturn<br \/>\n}<br \/>\nreturn<br \/>\n+F10::Send {Volume_Mute}<br \/>\n+F11::Send {Volume_Down 3}<br \/>\n+F12::Send {Volume_Up}<\/code><\/p>\n<p>Update: Reader Svolte points us to <a href=\"http:\/\/www.randyrants.com\/2008\/12\/sharpkeys_30.html\">SharpKeys<\/a>, which (by default) maps F13 to print screen.  The advantage of doing this is that alt-print-screen (capture just active window) works, while I was unable to replicate with the AutoHotKey script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to get the volumn, play, pause, skip buttons to work on the excellent Apple Keyboard, when connected to a Microsoft Windows computer.<\/p>\n","protected":false},"author":1,"featured_media":675,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[45,27,3],"tags":[37,162,163,160,382,164,166,383,165],"series":[],"class_list":["post-73","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hardware","category-windows","category-software","tag-apple","tag-autohotkey","tag-drivers","tag-keyboard","tag-mac","tag-macros","tag-media","tag-windows","tag-scripts"],"jetpack_featured_media_url":"https:\/\/efsavage.com\/blog\/wp-content\/uploads\/2007\/09\/apple-keyboard.jpg","jetpack_shortlink":"https:\/\/wp.me\/p1AkJt-1b","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":6,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions\/677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/media\/675"}],"wp:attachment":[{"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/tags?post=73"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/efsavage.com\/blog\/wp-json\/wp\/v2\/series?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}