Advertisement
Guest User

Untitled

a guest
May 16th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. #InstallKeybdHook
  2.  
  3. F12::
  4. Pause, on
  5.  
  6. Sleep 3000
  7.  
  8. Pause, off
  9.  
  10. return
  11.  
  12. isInUse = 0
  13.  
  14.  
  15.  
  16. RepeatPress( key ){
  17. global isInUse
  18. loop {
  19. if not GetKeyState( key, "P" ){
  20. break
  21. }
  22. if not isInUse {
  23. Send, {%key%}
  24. }
  25. sleep 1
  26. }
  27. return
  28. }
  29.  
  30. RepeatPressCtrl( key ){
  31. global isInUse = 1
  32. loop {
  33. if not GetKeyState( key, "P" ){
  34. isInUse = 0
  35. break
  36. }
  37. if GetKeyState( "Ctrl", "P" ){
  38. Send, ^{%key%}
  39. }
  40. sleep 1
  41. }
  42. return
  43. }
  44.  
  45. RepeatPressShift( key ){
  46. global isInUse = 1
  47. loop {
  48. if not GetKeyState( key, "P" ){
  49. isInUse = 0
  50. break
  51. }
  52. if GetKeyState( "Shift", "P" ){
  53. Send, +{%key%}
  54. }
  55. sleep 1
  56. }
  57. return
  58. }
  59.  
  60. RepeatPressBlind( key ){
  61. loop {
  62. if not GetKeyState( key, "P" ){
  63. break
  64. }
  65. Send, {Blind}{%key%}
  66. sleep 1
  67. }
  68. return
  69. }
  70.  
  71. RepeatPressRedirect( holdKey, sendKey ){
  72. loop {
  73. if not GetKeyState( holdKey, "P" ){
  74. break
  75. }
  76. Send, {Blind}{%sendKey%}
  77. sleep 1
  78. }
  79. return
  80. }
  81.  
  82. #IfWinActive World of Warcraft
  83. *Pause::Suspend
  84.  
  85. *1::RepeatPressBlind( "1" )
  86. *2::RepeatPressBlind( "2" )
  87. *3::RepeatPressBlind( "3" )
  88. *4::RepeatPressBlind( "4" )
  89. *5::RepeatPressBlind( "5" )
  90. *6::RepeatPressBlind( "6" )
  91. *f::RepeatPressBlind( "f" )
  92. *g::RepeatPressBlind( "g" )
  93. *t::RepeatPressBlind( "t" )
  94. *y::RepeatPressBlind( "y" )
  95. *x::RepeatPressBlind( "x" )
  96. *b::RepeatPressBlind( "b" )
  97. *c::RepeatPressBlind( "c" )
  98. *h::RepeatPressBlind( "h" )
  99. *n::RepeatPressBlind( "n" )
  100. *s::RepeatPressBlind( "s" )
  101. *q::RepeatPressBlind( "q" )
  102. *e::RepeatPressBlind( "e" )
  103. *r::RepeatPressBlind( "r" )
  104. *f3::RepeatPressBlind( "f3" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement