-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01 - [Rimworld] Group Keys.ahk
134 lines (118 loc) · 3.04 KB
/
01 - [Rimworld] Group Keys.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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
#SingleInstance force ; Determines whether a script is allowed to run again when it is already running.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;===============================================================================
;========== No Man's Sky =======================================================
;===============================================================================
;-----info gathering function
relInfo() ;gets info relative to window
{
global ;makes all variables global
CoordMode, Mouse, Relative
MouseGetPos, relXpos, relYpos, id
}
absInfo() ;gets absolute info
{
global ;makes all variables global
CoordMode, Mouse, Screen
MouseGetPos, absXpos, absYpos, id
}
info()
{
global ;makes all variables called, or made, global
relInfo()
absInfo()
WinGetClass, class, ahk_id %id%
}
;================================================
;===== Switching Numpad and Normal Numbers=======
$1::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad1}
Else
Send 1
Return
$2::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad2}
Else
Send 2
Return
$3::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad3}
Else
Send 3
Return
$4::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad4}
Else
Send 4
Return
$5::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad5}
Else
Send 5
Return
$6::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad6}
Else
Send 6
Return
$7::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad7}
Else
Send 7
Return
$8::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad8}
Else
Send 8
Return
$9::
info() ;pulling in active window info
;-----checking for NMS
If (InStr(class,"UnityWndClass"))
Send {Numpad9}
Else
Send 9
ReturN
; -------------------------Script Controls----------------------------
^!Numpad0:: ;reloads script, displays tooltip
TrayTip ,-Reloading-, %A_ScriptName%, 2, 16
sleep 2000
HideTrayTip ()
Reload
Return
!NumpadSub:: ;kills script, displays tooltip
TrayTip , Attempting to -KILL-, %A_ScriptName%, 3 , 16
sleep (2500)
HideTrayTip ()
ExitApp
Return
^Numpad0::num=0 ;reset Extension to beginning of script
; --------------------------------------------------------------------
; --------------------------------------------------------------------