Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1.  
  2. #NoEnv
  3. #SingleInstance force
  4. SendMode Input
  5.  
  6. ScriptActive = 1
  7.  
  8. FixAmount = 0.00000000000000000001
  9.  
  10.  
  11. RecoilFix(amount)
  12. {
  13. DllCall("mouse_event",uint,1,int,x,int,amount,uint ,0,int,0)
  14. }
  15.  
  16.  
  17. IfWinActive, Call of Duty 4
  18. {
  19. ~Lbutton::
  20. If ScriptActive = 1
  21. {
  22. RecoilFix(FixAmount)
  23. Loop
  24. {
  25. GetKeyState, state, Lbutton, P
  26. if state=U
  27. break
  28. Sendinput {Click down}
  29. Sleep 35
  30. Sendinput {Click up}
  31. Sleep 35
  32. RecoilFix(FixAmount)
  33. }
  34. }
  35. return
  36.  
  37.  
  38. ;Pauses AutoHotKey Script.
  39.  
  40. ~v::
  41. If ScriptActive = 1
  42. {
  43. ScriptActive = 0
  44. SoundBeep, 400, 400
  45. }
  46. else if ScriptActive = 0
  47. {
  48. ScriptActive = 1
  49. SoundBeep, 1000, 100
  50. SoundBeep, 1000, 100
  51. }
  52. return
  53.  
  54.  
  55. ~NumpadAdd::
  56. ++FixAmount
  57. SoundBeep, 700, 100
  58. SoundBeep, 700, 100
  59. clipboard = %FixAmount%
  60. return
  61.  
  62.  
  63. ~NumpadSub::
  64. --FixAmount
  65. SoundBeep, 700, 100
  66. clipboard = %FixAmount%
  67. return
  68.  
  69. ~NumpadDiv::
  70. FixAmount-=0.1
  71. SoundBeep, 600, 100
  72. clipboard = %FixAmount%
  73. return
  74.  
  75. ~NumpadMult::
  76. FixAmount+=0.1
  77. SoundBeep, 600, 100
  78. SoundBeep, 600, 100
  79. clipboard = %FixAmount%
  80. return
  81. }
  82.  
  83. ;M9 = FixAmount 1
  84. ;G3 = FixAmount 0.700000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement