Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance
- #NoEnv
- ;------#CS TOOLBOX#-----------------------------------------------
- ;Last updated 09/02/2011
- ;Script by Sparx
- ;------------------------------------------------------------------
- ;------------------------------------------------------------------
- ;Add your games window class name to this list to activate the script for that game
- ;------#GAMES#--------------------------------------------------
- GroupAdd,gamewindow ,ahk_class Valve001 ; CS: CZ
- ;------------------------------------------------------------------
- #IfWinActive ahk_group gamewindow
- ;------#INFO#------------------------------------------------------
- ; Remember to set your game to run in windowed mode and restart if you want to show crosshair (and alt-tab out while dead)
- ; The script will automatically maximize and remove borders from the game so it works completely like fullscreen mode
- ;------------------------------------------------------------------
- ;All keys behave as normal when game window is not at the front.
- ;------#BINDINGS#--------------------------------------------------
- quick_switch = XButton2
- crosshair = Delete ;Toggle the crosshair
- crouch_walk = XButton1 ;Toggle crouch jump walk thing
- bunny_hop = End ;Toggle bunny hopping
- toggle_script = NumpadEnter
- change_delay = Home
- ;------------------------------------------------------------------
- ;Crosshair colour in base16
- ;------#CROSSHAIR SETTINGS#----------------------------------------
- red = FF
- green = 00
- blue = 00
- ;------------------------------------------------------------------
- ;Don't change these unless you know what you're doing:
- ;------#OTHER VARIABLES#-------------------------------------------
- switch_weapon = q
- crouch = lcontrol
- final_delay = 150
- window_title = ahk_group gamewindow
- finalcolor = 0x00%blue%%green%%red%
- fullscreen := 0
- looptime := 4
- drawshit := 0
- xpos := A_ScreenWidth/2
- ypos := A_ScreenHeight/2
- hDrwArea := DllCall("GetDC", "uint", Null)
- Hotkey,~*$%quick_switch%,quickswitch
- Hotkey,~*%crosshair%,docrosshair
- Hotkey,~*%toggle_script%,toggleshit
- Hotkey,~*%crouch_walk%,fancyshit
- Hotkey,~*%change_delay%,delay
- lazor:
- Loop
- {
- WinWaitClose, %window_title%
- {
- fullscreen := 0
- fire_mode := 0
- Dontdraw()
- drawshit := 0
- }
- WinWait, %window_title%
- {
- if not fullscreen = 1
- {
- WinActivate
- fullscreen := 1
- WinSet, Style, -0xC00000
- WinMove, , , 0, 0
- WinMaximize
- }
- }
- sleep 10000
- }
- return
- delay:
- if final_delay = 150
- {
- final_delay = 90
- SoundBeep, 1200, 100
- }
- else
- {
- final_delay = 150
- SoundBeep, 350, 100
- }
- return
- fancyshit:
- while GetKeyState("XButton1")
- {
- SendInput {%crouch% down}
- Sleep 5
- SendInput {%crouch% up}
- Sleep 2
- SendInput {%crouch% down}
- Sleep 350
- SendInput {%crouch% up}
- sleep %final_delay%
- }
- return
- quickswitch:
- SendInput {%switch_weapon%}{%switch_weapon%}
- return
- toggleshit:
- Suspend, toggle
- return
- docrosshair:
- If drawshit < 1
- {
- drawshit +=1
- If drawshit = 1
- {
- Draw()
- }
- SoundBeep, 1200, 100
- }
- else
- {
- Dontdraw()
- drawshit := 0
- SoundBeep, 350, 100
- }
- return
- Draw()
- {
- SetTimer, SetPixel, 1
- }
- return
- Dontdraw()
- {
- SetTimer, SetPixel, Off
- }
- return
- SetPixel:
- IfWinActive, %window_title%
- {
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 2, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 2, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 3, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 3, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 2, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 2, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 3, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 3, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 4, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 4, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 4, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 4, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 5, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 5, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 5, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 5, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 6, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 6, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 7, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 7, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 7, "int", ypos, "uint", finalcolor)
- DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 7, "int", ypos, "uint", finalcolor)
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement