Advertisement
sdini

Numpad on TKL

Nov 20th, 2014
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;This function turns the special key cluster above the arrows into a 10key.
  2. ;This will be toggled with the option key to help migrate over from a full size key board.
  3. waffles:=0
  4.  
  5. ; waffles:=!waffles .... This assigns waffles to the value of NOT waffles. so lets say waffles starts out TRUE (1). you then turn waffles to NOT TRUE. which is FALSE (0). so now waffles is set to FALSE. and then lets say you toggle it again. you set waffles to NOT FALSE, which is TRUE. waffles is now set to TRUE. .... 1 is true, 0 is false. ! is NOT.
  6. AppsKey::waffles:=1
  7.  
  8. ; If you stack hotkeys like this, they all trigger the same code underneath
  9. ~Escape::
  10. ~!Tab::
  11.     waffles := 0
  12. return
  13.  
  14. #if (waffles=1)
  15.     PrintScreen::7
  16.     ScrollLock::8
  17.     Pause:: 9
  18.     Ins::4
  19.     Home::5
  20.     PgUp::6
  21.     Del::1
  22.     End::2
  23.     PgDn::3
  24.     SC11D::0 ; this is RCtrl but for my keyboard it registers as unknown. if yours registers a RCtrl use that instead.
  25. #if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement