Skip to content

Instantly share code, notes, and snippets.

@TaranVH
Created February 22, 2017 19:44
Show Gist options
  • Save TaranVH/a0714148e06ae734785171db827c8803 to your computer and use it in GitHub Desktop.
Save TaranVH/a0714148e06ae734785171db827c8803 to your computer and use it in GitHub Desktop.
multi layered extra keyboard
#NoEnv
SendMode Input
#SingleInstance force
;dummy script for multiple layers on a second keyboard
;not fully tested.
uselayer := 0
;LAYER TEN
#if (getKeyState("F23", "P")) && (uselayer = 10)
F23::return
a::msgbox,,,You are in layer ten, 2
b::
c::
d::tooltip, all keys must be represented in all these layers or they will pass through unblocked
0::
uselayer := 0
msgbox,,, you are now on layer %uselayer% which should be 0, 2
return
#if
;end of F23 keyboard's layer TEN
;--F23 LAYER ZERO--
#if (getKeyState("F23", "P")) && (uselayer = 0)
F23::return
a::msgbox,,, you are in layer zero, 2
b::
c::
d::tooltip, blah blah blah
F10::
useLayer := 10
msgbox,,, you are now on layer %uselayer%, 2
return
#if
;end of F23 keyboard's layer zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment