Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance
  2. #NoEnv
  3. ;------#CS TOOLBOX#-----------------------------------------------
  4. ;Last updated 09/02/2011
  5. ;Script by Sparx     
  6. ;------------------------------------------------------------------
  7.  
  8. ;------------------------------------------------------------------
  9. ;Add your games window class name to this list to activate the script for that game
  10. ;------#GAMES#--------------------------------------------------
  11.  
  12. GroupAdd,gamewindow ,ahk_class Valve001 ; CS: CZ
  13.  
  14. ;------------------------------------------------------------------
  15. #IfWinActive ahk_group gamewindow
  16. ;------#INFO#------------------------------------------------------
  17.  
  18. ;   Remember to set your game to run in windowed mode and restart if you want to show crosshair (and alt-tab out while dead)
  19. ;   The script will automatically maximize and remove borders from the game so it works completely like fullscreen mode
  20.  
  21. ;------------------------------------------------------------------
  22. ;All keys behave as normal when game window is not at the front.
  23. ;------#BINDINGS#--------------------------------------------------
  24.  
  25. quick_switch        = XButton2
  26.  
  27. crosshair       = Delete        ;Toggle the crosshair
  28.  
  29. crouch_walk     = XButton1      ;Toggle crouch jump walk thing
  30.  
  31. bunny_hop       = End           ;Toggle bunny hopping
  32.  
  33. toggle_script       = NumpadEnter
  34.  
  35. change_delay        = Home
  36.  
  37. ;------------------------------------------------------------------
  38. ;Crosshair colour in base16
  39. ;------#CROSSHAIR SETTINGS#----------------------------------------
  40.  
  41. red = FF
  42. green = 00
  43. blue = 00
  44.  
  45. ;------------------------------------------------------------------
  46. ;Don't change these unless you know what you're doing:
  47. ;------#OTHER VARIABLES#-------------------------------------------
  48.  
  49. switch_weapon = q
  50. crouch = lcontrol
  51. final_delay = 150
  52. window_title = ahk_group gamewindow
  53. finalcolor = 0x00%blue%%green%%red%
  54. fullscreen := 0
  55. looptime := 4
  56. drawshit := 0
  57. xpos := A_ScreenWidth/2
  58. ypos := A_ScreenHeight/2
  59. hDrwArea := DllCall("GetDC", "uint", Null)
  60.  
  61. Hotkey,~*$%quick_switch%,quickswitch
  62. Hotkey,~*%crosshair%,docrosshair
  63. Hotkey,~*%toggle_script%,toggleshit
  64. Hotkey,~*%crouch_walk%,fancyshit
  65. Hotkey,~*%change_delay%,delay
  66. lazor:
  67. Loop
  68. {
  69.     WinWaitClose, %window_title%
  70.     {
  71.         fullscreen := 0
  72.         fire_mode := 0
  73.         Dontdraw()
  74.         drawshit := 0
  75.     }
  76.    
  77.     WinWait, %window_title%
  78.     {  
  79.         if not fullscreen = 1
  80.         {
  81.             WinActivate
  82.             fullscreen := 1
  83.             WinSet, Style, -0xC00000
  84.             WinMove, , , 0, 0
  85.             WinMaximize
  86.         }
  87.     }
  88. sleep 10000
  89. }
  90. return
  91.  
  92. delay:
  93. if final_delay = 150
  94. {
  95. final_delay = 90
  96. SoundBeep, 1200, 100
  97. }
  98. else
  99. {
  100. final_delay = 150
  101. SoundBeep, 350, 100
  102. }
  103. return
  104.  
  105. fancyshit:
  106. while GetKeyState("XButton1")
  107. {
  108. SendInput {%crouch% down}
  109. Sleep 5
  110. SendInput {%crouch% up}
  111. Sleep 2
  112. SendInput {%crouch% down}
  113. Sleep 350
  114. SendInput {%crouch% up}
  115. sleep %final_delay%
  116. }
  117. return
  118.  
  119. quickswitch:
  120. SendInput {%switch_weapon%}{%switch_weapon%}
  121. return
  122.  
  123. toggleshit:
  124. Suspend, toggle
  125. return
  126.  
  127.  
  128. docrosshair:
  129. If drawshit < 1
  130. {
  131.     drawshit +=1
  132.     If drawshit = 1
  133.     {
  134.         Draw()
  135.     }
  136.     SoundBeep, 1200, 100
  137. }
  138. else
  139. {
  140. Dontdraw()
  141. drawshit := 0
  142. SoundBeep, 350, 100
  143. }
  144. return
  145.  
  146.  
  147. Draw()
  148. {
  149. SetTimer, SetPixel, 1
  150. }
  151. return
  152.  
  153. Dontdraw()
  154. {
  155. SetTimer, SetPixel, Off
  156. }
  157. return
  158.  
  159.  
  160. SetPixel:
  161. IfWinActive, %window_title%
  162. {
  163. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 2, "uint", finalcolor)
  164. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 2, "uint", finalcolor)
  165.  
  166. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 3, "uint", finalcolor)
  167. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 3, "uint", finalcolor)
  168.  
  169. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 2, "int", ypos, "uint", finalcolor)
  170. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 2, "int", ypos, "uint", finalcolor)
  171.  
  172. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 3, "int", ypos, "uint", finalcolor)
  173. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 3, "int", ypos, "uint", finalcolor)
  174.  
  175. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 4, "uint", finalcolor)
  176. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 4, "uint", finalcolor)
  177.  
  178. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 4, "int", ypos, "uint", finalcolor)
  179. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 4, "int", ypos, "uint", finalcolor)
  180.  
  181. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 5, "uint", finalcolor)
  182. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 5, "uint", finalcolor)
  183.  
  184. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 5, "int", ypos, "uint", finalcolor)
  185. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 5, "int", ypos, "uint", finalcolor)
  186.  
  187. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 6, "uint", finalcolor)
  188. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 6, "uint", finalcolor)
  189.  
  190. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos, "uint", finalcolor)
  191. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos, "uint", finalcolor)
  192.  
  193. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 7, "uint", finalcolor)
  194. DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 7, "uint", finalcolor)
  195.  
  196. DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 7, "int", ypos, "uint", finalcolor)
  197. DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 7, "int", ypos, "uint", finalcolor)
  198. }
  199. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement