Advertisement
Guest User

Untitled

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