#Include <Misc.au3>
HotKeySet("!{ESC}", "Terminate")
$Color = "0xEB00A7"; pink this is just for testing....it will only target cts with the mdls i made
$Colo1 = "0xB1007E";
$Colo2 = "0xAD007B"
$Colo3 = "0x65004A"
$left = 460
$top = 380
$right = 540
$bottem = 430
$dll = DllOpen("user32.dll")
While 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;hotkeys________________________
_________________
if _IsPressed("39",$dll) Then ; 9
$Color = "0xD60000";
SoundPlay(@MyDocumentsDir & "\t.wav",0)
sleep(500)
Else
if _IsPressed("30",$dll) Then; 0
$Color = "0xD60000"
SoundPlay(@MyDocumentsDir & "\ct.wav",0)
sleep(500)
Else
If _IsPressed("26",$dll) Then;up
$left = 460
$top = 380
$right = 540
$bottem = 430
Else
If _IsPressed("28",$dll) Then;down
$left = 490
$top = 380
$right = 510
$bottem = 430
Else
if WinActive("Counter-Strike") Then
If _IsPressed("01", $dll) Then
$Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)
If IsArray($Pos) Then
MouseMove($Pos[0],$Pos[1],0)
Else
$Pos = PixelSearch($left,$top,$right,$bottem, $Colo1, 10,2)
if IsArray($Pos) Then
MouseMove($Pos[0],$Pos[1],0)
Else
$Pos = PixelSearch($left,$top,$right,$bottem, $Colo2, 10,2)
if IsArray($Pos) Then
MouseMove($Pos[0],$Pos[1],0)
Else
$Pos = PixelSearch($left,$top,$right,$bottem, $Colo3, 10,2)
if IsArray($Pos) Then
MouseMove($Pos[0],$Pos[1],0)
Else
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
WEnd
Func Terminate()
Exit 0
EndFunc
DllClose($dll)