-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame_Endless_Space.ahk
63 lines (49 loc) · 1.67 KB
/
Game_Endless_Space.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#Include <_COMMON_SETTINGS_>
Menu, Tray, Icon
Reload_AsAdmin()
#MaxThreads 1
SetMouseDelay, 50 ; игра при любой задержке ненадежно отрабатывает нажатие на конку
GroupAdd, Game, ahk_exe EndlessSpace.exe
X := 83, Y := 24 ; первая иконка
Xoffset := 50 ; расстояние до следующей иконки в ряду
ClickAndRestore(X, Y)
{
MouseGetPos, _X, _Y
BlockInput, MouseMove
MouseMove, %X%, %Y%, 0
Click, Down
Click, Up
MouseMove, _X, _Y, 0
BlockInput, MouseMoveOff
}
#IfWinNotExist, ahk_group Game
Launch_App1:: Run, steam://rungameid/208140
#IfWinNotActive, ahk_group Game
Launch_App1:: WinActivate, ahk_group Game
#IfWinActive, ahk_group Game
F1::ClickAndRestore(X + Xoffset * 0, Y) ; Empire
F2::ClickAndRestore(X + Xoffset * 1, Y) ; Research
F3::ClickAndRestore(X + Xoffset * 2, Y) ; Military
F4::ClickAndRestore(X + Xoffset * 3, Y) ; Diplomacy
F5::ClickAndRestore(X + Xoffset * 4, Y) ; Academy
^F::ClickAndRestore(1855, 1032) ; Select 'Search' box in 'Research' window.
+F::ClickAndRestore(1855, 1055) ; 'Locate' button to cycle founded technology.
1::ClickAndRestore(1785, 980) ; Execute all planned moves of your fleet.
2::ClickAndRestore(1778, 1032) ; Review all fleets without orders.
3::ClickAndRestore(1855, 930) ; View bottom message.
#IfWinActive
!z::Reload
!x::ExitApp
F1:: ShowHelpWindow("
(
F1 -> Empire
F2 -> Research
F3 -> Military
F4 -> Diplomacy
F5 -> Academy
^F -> Select 'Search' box in 'Research' window.
+F -> 'Locate' button to cycle founded technology.
1 -> Execute all planned moves of your fleet.
2 -> Review all fleets without orders.
3 -> View bottom message.
)")