-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRailroaderScripts.ahk
98 lines (84 loc) · 1.53 KB
/
RailroaderScripts.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
#Requires AutoHotkey v2.0
; Set of scripts to use for the game Railroader
#HotIf WinActive("ahk_exe Railroader.exe")
; Use Mouse 4 to toggle RMB for freelook
XButton1::
{
if GetKeyState("RButton")
Click "Up Right"
else
Click "Down Right"
}
; Double-click to Ctrl-Click
; https://www.autohotkey.com/boards/viewtopic.php?t=120028 for the double-click code block
~LButton::
{
While GetKeyState("LButton")
{
If A_TimeSinceThisHotkey >= 500
Break
Else if (A_PriorHotkey = A_ThisHotkey && A_TimeSincePriorHotkey <= DllCall("GetDoubleClickTime"))
{
SendInput "{Ctrl down}{Click down}"
Sleep 50
SendInput "{Ctrl up}{Click up}"
Return
}
}
}
; Mouse5 for Shift-Ctrl-Click
Xbutton2::
{
Send "{Shift down}{Ctrl down}{Click down}"
Sleep 50
Send "{Shift up}{Ctrl up}{Click up}"
}
; Keybinds for teleporting to various locations
~F2::
{
SendInput "~"
Sleep 100
SendInput "/tp ds{Enter}{Esc}"
}
~F3::
{
SendInput "~"
Sleep 100
SendInput "/tp `"East Whittier`"{Enter}{Esc}"
}
~F4::
{
SendInput "~"
Sleep 100
SendInput "/tp Whittier{Enter}{Esc}"
}
~F5::
{
SendInput "~"
Sleep 100
SendInput "/tp Ela{Enter}{Esc}"
}
~F6::
{
SendInput "~"
Sleep 100
SendInput "/tp `"Alarka Jct`"{Enter}{Esc}"
}
~F7::
{
SendInput "~"
Sleep 100
SendInput "/tp Alarka{Enter}{Esc}"
}
~F8::
{
SendInput "~"
Sleep 100
SendInput "/tp Dillsboro{Enter}{Esc}"
}
~F9::
{
SendInput "~"
Sleep 100
SendInput "/tp Sylva{Enter}{Esc}"
}