Created
December 12, 2016 16:32
-
-
Save mhoye/7cd80e6534af9fb17986c78ecd791ac1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This AutoHotKey script remaps single- and double-click actions | |
; of your Surface Pen to PageUp and PageDown respectively, while | |
; you're using Firefox or Chrome. This will let you use the pen | |
; as a presenter's controller while you're showing slideshows | |
; from Google Docs. | |
; AHK syntax is pretty weird, but if you've got questions | |
; or ideas for improvement, email me at [email protected] | |
#If WinActive("ahk_exe chrome.exe") || WinActive("ahk_exe firefox.exe") | |
; Remap F20, the single-click of pen button, to PgDn. | |
#F20:: | |
Send {PgDn} | |
Sleep 100 | |
return | |
; Remap F19, the double-click from the pen button to PgUp. | |
#F19:: | |
Send {PgUp} | |
Sleep 100 | |
return | |
#If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment