Advertisement
Guest User

numlock trick with F1-F4

a guest
May 27th, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. ;======================================
  7.  
  8. n1status := 0
  9. n2status := 0
  10. n3status := 0
  11. n4status := 0
  12. Send, {Numpad1 up}
  13. Send, {Numpad2 up}
  14. Send, {Numpad3 up}
  15. Send, {Numpad4 up}
  16.  
  17.  
  18. F1::
  19. If( n1status = 0 ){
  20. Send, {Numpad1 down}
  21. n1status = 1
  22. } Else If ( n1status = 1){
  23. Send, {Numpad1 up}
  24. n1status = 0
  25. }
  26. Return
  27.  
  28. F2::
  29. If( n2status = 0 ){
  30. Send, {Numpad2 down}
  31. n2status = 1
  32. } Else If ( n2status = 1){
  33. Send, {Numpad2 up}
  34. n2status = 0
  35. }
  36. Return
  37.  
  38.  
  39. F3::
  40. If( n3status = 0 ){
  41. Send, {Numpad3 down}
  42. n3status = 1
  43. } Else If ( n3status = 1){
  44. Send, {Numpad3 up}
  45. n3status = 0
  46. }
  47. Return
  48.  
  49.  
  50. F4::
  51. If( n4status = 0 ){
  52. Send, {Numpad4 down}
  53. n4status = 1
  54. } Else If ( n4status = 1){
  55. Send, {Numpad4 up}
  56. n4status = 0
  57. }
  58. Return
  59. ;===================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement