-
Notifications
You must be signed in to change notification settings - Fork 1
/
H-Shifter.ahk
137 lines (127 loc) · 3.64 KB
/
H-Shifter.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
; Numpad7 Numpad8 Numpad9
; | | |
; | | |
; ---------------------------------
; | | |
; | | |
; Numpad4 Numpad5 Numpad6
; {Numpad1 up}{numpad4 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 up}
; {Numpad1 down} {numpad4 down} {numpad5 down} {numpad6 down} {numpad7 down} {numpad8 down} {numpad9 down}
^s::
suspend, Permit
send, {ctrl down}s{ctrl up}
sleep 100
reload, "C:\Users\RubySapphire\Desktop\Scripts for AHK\ATS"
return
--------------------------------
pause::
Suspend, Permit
Suspend, Toggle
Return
#ifWinActive American Truck Simulator
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
$Numpad0::
Send, {Numpad1 up}{numpad4 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 up}
Return
---------------------------------------------------------------------------------------------------------
$Numpad7::
Send, {Numpad1 up}{numpad4 up}{numpad5 up}{numpad6 up}{numpad8 up}{numpad9 up}{numpad7 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad4::
Send, {Numpad1 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 up}{numpad4 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad8::
Send, {Numpad1 up}{numpad4 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad9 up}{numpad8 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad5::
Send, {Numpad1 up}{numpad4 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 up}{numpad5 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad9::
Send, {Numpad1 up}{numpad4 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad6::
Send, {Numpad1 up}{numpad4 up}{numpad5 up}{numpad7 up}{numpad8 up}{numpad9 up}{numpad6 down}
Return
---------------------------------------------------------------------------------------------------------
$Numpad1::
Send, {numpad4 up}{numpad5 up}{numpad6 up}{numpad7 up}{numpad8 up}{numpad9 up}{Numpad1 down}
Return
---------------------------------------------------------------------------------------------------------
#ifWinActive
; num1, num0, num7, num4, num8, num5, num9, num6
$MButton::
{
key = 2
Send, {Numpad0 down}{numpad1 up}{numpad7 up}{numpad4 up}{numpad8 up}{numpad5 up}{numpad9 up}{numpad6 up}
Return
}
Up::
{
if (key = 8)
Return
key++
if key = 1
Send, {Numpad1 Down}
else if key = 2
Send, {numpad1 up}{numpad0 Down}
else if key = 3
Send, {numpad0 up}{numpad7 Down}
else if key = 4
Send, {numpad7 up}{numpad4 Down}
else if key = 5
Send, {numpad4 up}{numpad8 Down}
else if key = 6
Send, {numpad8 up}{numpad5 Down}
else if key = 7
Send, {numpad5 up}{numpad9 Down}
else if key = 8
Send, {numpad9 up}{numpad6 Down}
return
}
Down::
{
if (key = 1)
Return
if key = 8
{
Send, {numpad6 up}{Numpad9 Down}
key--
}
else if key = 7
{
Send, {numpad9 up}{numpad5 Down}
key--
}
else if key = 6
{
Send, {numpad5 up}{numpad8 Down}
key--
}
else if key = 5
{
Send, {numpad8 up}{numpad4 Down}
key--
}
else if key = 4
{
Send, {numpad4 up}{numpad7 Down}
key--
}
else if key = 3
{
Send, {numpad7 up}{numpad0 Down}
key--
}
else if key = 2
{
Send, {numpad0 up}{numpad1 Down}
key--
}
return
}