Код

 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
vk14 & vk33::
SetTimer, useShield, % ((active := !active) ? 3150 : "off")
if (!active)
{
for k, v in ids
{
ControlSend,, % "{vk" 31 + Mod(count, 4) " Up}", ahk_class TargemWindow ahk_id%v%
ControlSend,, {vk57 Up}, ahk_class TargemWindow ahk_id%v%
}
}
else
{
useShield()
}
return
useShield()
{
PixelGetColor, color, 0, 10, fast, RGB
If color = 0x161416
{
SetTimer, useShield, off
}
for k, v in ids
{
ControlSend,, % "{vk" 31 + Mod(count, 4) " Up}", ahk_class TargemWindow ahk_id%v%
ControlSend,, {vk57 Up}, ahk_class TargemWindow ahk_id%v%
}
count++
for k, v in ids
{
ControlSend,, {vk57 down}, ahk_class TargemWindow ahk_id%v%
ControlSend,, % "{vk" 31 + Mod(count, 4) " down}", ahk_class TargemWindow ahk_id%v%
}
}