-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCS ads hold.ahk
49 lines (43 loc) · 927 Bytes
/
CS ads hold.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
!s::Suspend
#IfWinActive, Counter-Strike: Global Offensive - Direct3D 9
$*RButton::
Scope := CheckScope()
while (GetKeyState("RButton", "P") = 1)
{
Scope := CheckScope()
if (Scope <> "0x000000")
{
Send {Blind}{RButton}
}
}
return
$*RButton up::
Scope := CheckScope()
while (Scope = "0x000000")
{
if (GetKeyState("RButton", "P") = 0)
{
Send {Blind}{RButton}
Scope := CheckScope()
}
}
return
~*LButton::
Scope := CheckScope()
If (Scope = "0x000000")
{
sleep 30
Send {Blind}{3}
sleep 1
Send {Blind}{1}
}
return
CheckScope()
{
PixelGetColor, Pixel1, 640, 360
PixelGetColor, Pixel4, 4480, 800
if (Pixel1 = 0x000000 && Pixel4 = 0x000000)
return 0x000000
else
return ""
}