123

 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
vk14 & vk33::
SetTimer, useShield, % ((active := !active) ? 3150 : "off")
SetTimer, useAlt, on
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, kont, 1128, 64,fast,RGB
If kont = 0x060606
{
active := 0
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%
}
}