Skip to content

Instantly share code, notes, and snippets.

@ViViDboarder
Created December 31, 2012 14:48
Show Gist options
  • Save ViViDboarder/4420292 to your computer and use it in GitHub Desktop.
Save ViViDboarder/4420292 to your computer and use it in GitHub Desktop.
Some hotkeys designed for my Filco Majestouch 2
;-- On Startup
vol_Step = 3
;-- Hotkeys
;-- Volume adjust
HotKey #PgUp, volUp ; Win+Page Up
HotKey #PgDn, volDn ; Win+Page Down
HotKey #End, volMute ; Win+End
;-- Browser Navigation
HotKey !#Left, browserBack ; Ctrl+Win+Left
HotKey !#Right, browserForward ; Ctrl+Win+Right
;-- End On Startup
return
volUp:
Send {Volume_Up %vol_Step%}
return
volDn:
Send {Volume_Down %vol_Step%}
return
volMute:
Send {Volume_Mute}
return
;-- Disable Win Key and replace with Win+Space
;-- Intended for gaming but doesn't work in all games
~LWin Up:: Return
~RWin Up:: Return
#Space::Send {LWin}
;-- Numlock
;-- This part isn't working at the moment
;u::
; numKeyState:=GetKeyState("NumLock", "T")
; If numKeyState=1
; {
; Send {u}
; }
; else
; {
; Send {4}
; }
;return
;ScrollLock:: ;-- Used to toggle NumLock state with Scroll Lock
; scrollKeyState:=GetKeyState("ScrollLock", "T")
; ;ListVars
; ;Pause
; If scrollKeyState=0
; {
; SetNumLockState On
; SetScrollLockState On
; }
; Else
; {
; SetNumLockState Off
; SetScrollLockState Off
; }
; ;numKeyState:=GetKeyState("NumLock", "T")
; ;ListVars
; ;Pause
;return
;-- Misc. Hotkey Functions
browserBack:
Send {Browser_Back}
return
browserForward:
Send {Browser_Forward}
return
mediaStop:
Send {Media_Stop}
return
mediaNext:
Send {Media_Next}
return
mediaPrev:
Send {Media_Prev}
return
mediaPlayPause:
Send {Media_Play_Pause}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment