The Surface Pro 3 is a neat device but there are a bunch of user experience flaws concerning the Cover and the Pen (which we will solve in this post) such as:
- The Cover’s function keys F1-F12 can only be reached using the Fn button – especially annoying for developers.
- The Cover has no button for changing the screen brightness.
- The Surface Pen’s top button (the purple one) cannot be configured to open a custom program. I want the Snipping Tool to be opened.
- The Surface Pen lacks a “back” button, e.g. for quickly correct a wrong pen stroke in Photoshop, Mischief or similar drawing programs.
- I never use CapsLock – let’s map it to a different key, e.g. AltGr (this is of course not Surface-specific but a nice productivity boost nonetheless)
Solutions:
The solutions 1 & 2 are just simple keyboard shortcuts:
- Function key lock: Press
Fn+CapsLock
to toggle the behavior. Unfortunately, this introduces a new problem which will be solved in the paragraph after this:- For F1-F8 I want the default to be the function keys themselves but for F9-F12 I want the reverse as default: Home, End, Page Up, Page Down
- Secret shortcuts for screen brightness:
Fn + Del/Backspace
The remaining problems are solved by using AutoHotKey with its extensive scripting capabilities and a lively community sharing knowledge thereof.
After installing it, copy the following script to the autostart folder (e.g. under the name of EnableSurfaceProductivity.ahk) to have it running with every start. To test the effect immediately, double-click the file.
; Solution for 1b: Reverse behavior for F9-F12 ; The dollar signs prevent that the hooks call themselves $Home::SendInput, {F9} return $End::SendInput, {F10} return $PgUp::SendInput, {F11} return $PgDn::SendInput, {F12} return $F9::Send, {Home} return $F10::Send, {End} return $F11::Send, {PgUp} return $F12::Send, {PgDn} return ; Solution 3: Open the Snipping Tool when double-pressing the purple button ; The script waits for the program to start and then simulates ; Win+PrintScreen which directly jumps to the selection process #F19:: Run, "C:\Windows\Sysnative\SnippingTool.exe" WinActivate, Snipping Tool ; This makes sure it is active WinWaitActive, Snipping Tool Send, ^{PrintScreen} return ; Solution 4: Simulate Ctrl+Z when single-clicking the purple button #F20::Send, ^z ; Left Arrow, Browser Back Button return ; Solution 5: Map CapsLock to AltGr CapsLock::RAlt
For anyone finding this, you should be aware that modifier keys doesn’t work.
Shift + Home will NOT mark your entire text as expected.
Please find this post and follow the link to gist, where he posted an updated version:
https://www.reddit.com/r/Surface/comments/4kirif/autohotkey_fn_remap_script_for_the_type_cover/
Bless you for posting a solution to keep function keys for F1-F8 while retaining the Home, End, and Page Up/Page Down keys. I’m considering buying a first gen Surface Book and this may have very well been a dealbreaker without your solution. Note to Microsoft if you read this: it was almost a dealbreaker!!
https://www.reddit.com/r/Surface/comments/4kirif/autohotkey_fn_remap_script_for_the_type_cover/