Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ; Binds the Numlock key to a calculator.
  2. ; Double tap to launch or close.
  3. ; Single tap to focus or minimize.
  4. ; Place in start folder to automatically run.
  5.  
  6. #NoEnv
  7. SendMode Input
  8. SetWorkingDir %A_ScriptDir%
  9.  
  10. SetNumLockState AlwaysOn
  11.  
  12. NumLock::Handler(250)
  13.  
  14. Handler(Time)
  15. {
  16. ; DOUBLE TAP
  17. If (A_ThisHotkey==A_PriorHotkey && A_TimeSincePriorHotkey < Time) {
  18. IfWinExist, SpeedCrunch
  19. WinClose
  20. else
  21. Run, "C:\Program Files (x86)\SpeedCrunch\SpeedCrunch.exe", max
  22. }
  23. ; SINGLE TAP
  24. else {
  25. IfWinExist, SpeedCrunch
  26. IfWinActive
  27. WinMinimize
  28. else
  29. WinActivate
  30. }
  31. return
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement