Advertisement
sdini

Numpad on TKL with Scroll Lock

Nov 21st, 2014
685
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).
  6. ;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.
  7. ;you set waffles to NOT FALSE, which is TRUE. waffles is now set to TRUE. .... 1 is true, 0 is false. ! is NOT.
  8. AppsKey::
  9.     waffles:=1
  10.      SetScrollLockState, AlwaysOn ; Scrlock is turned on when the triggering the script showing the numpad is om
  11. return
  12.  
  13. ; If you stack hotkeys like this, they all trigger the same code underneath
  14. ~Escape::
  15. ~F12::
  16.     waffles := 0
  17.      SetScrollLockState, off ; Scrlock is turned off showing that it is off.
  18. return
  19.  
  20. #if (waffles=1)
  21.     PrintScreen::7
  22.     ScrollLock::8
  23.     Pause:: 9
  24.     Ins::4
  25.     Home::5
  26.     PgUp::6
  27.     Del::1
  28.     End::2
  29.     PgDn::3
  30.     SC11D::0 ; this is RCtrl but for my keyboard it registers as unknown. if yours registers a RCtrl use that instead.
  31. #if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement