-
Notifications
You must be signed in to change notification settings - Fork 16
/
arc.ahk
46 lines (35 loc) · 1.1 KB
/
arc.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
I_Icon = icons/arc.png
#Include %A_ScriptDir%/utility.ahk
#SingleInstance force
; The issue:
; Arc's and Tempest Double's necro book can not be pernamently assigned to different hot-keys. Thus, it is not trivial to send both necro books on different camps relatively quickly.
; Quick bind:
; If you have a hero and 2 summons selected, deselects the first unit (e.g. Arc or Tempest Double) and binds the rest to a specific hotkey.
; 1
LAlt & z::
mousegetpos,x,y
Send {LShift Down}
click, 514 803 ; X, Y coordinates of a hero (always 1st)
Sleep, 100
Send {LShift Up}
Sleep, 100
Send { LCtrl Down}
send a ; put YOUR BIND HOTKEY for book 1
Sleep, 100
Send { LCtrl Up}
mousemove x,y
return
; 2
LAlt & x::
mousegetpos,x,y
Send {LShift Down}
click, 533 803 ; X, Y coordinates of a Tempest Double (always 1st)... This might be different from hero
Sleep, 100
Send {LShift Up}
Sleep, 100
Send { LCtrl Down}
send s ; put YOUR BIND HOTKEY for book 2
Sleep, 100
Send { LCtrl Up}
mousemove x,y
return