-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamestuff.ahk
317 lines (258 loc) · 5.72 KB
/
gamestuff.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
#Requires AutoHotkey v2.0
#SingleInstance force
A_MaxHotkeysPerInterval := 300
InCommand := false
IsEnabled := true
^!Space::
{
global IsEnabled
IsEnabled := !IsEnabled
ToolTip IsEnabled ? "✅GAMESTUFF ON✅" : "❌GAMESTUFF OFF❌"
SetTimer () => ToolTip(), -1000
}
#HotIf WinActive("ahk_exe javaw.exe") && IsEnabled
{
XButton1::F18
XButton2::F13
#HotIf GetKeyState("F13")
{
.::F14
p::F15
u::F16
j::F17
}
#HotIf GetKeyState("F18")
{
.::F19
p::F20
u::F21
j::F22
}
}
#HotIf WinActive("ahk_exe javaw.exe") && IsEnabled
{
:*:m;sh::
{
SendText "/sethome "
}
:*:m;h::
{
SendText "/home "
}
:*:m;rmh::
{
SendText "/rmhome "
}
:*:m;w::
{
SendText "/warp "
}
:*:m;casino::
{
SendInput "{Esc}"
Sleep 75
SendCommand "/itemlore add &0"
SendCommand "/itemlore add &8&oThis item is from &5&oAscyt's Casino&8&o."
SendCommand "/itemlore add &8&oCheck it out using &2&o/warp ascyt-casino&8&o!"
}
SendCommand(command)
{
SendInput "{Enter}"
Sleep 75
SendText command
SendInput "{Enter}"
}
GetTabInfo(command)
{
SendInput "{Enter}"
Sleep 75
SendText command
Sleep 150
SendInput "{Tab}"
Sleep 75
SendInput "{Ctrl down}a{Ctrl up}"
Sleep 75
SendInput "{Ctrl down}j{Ctrl up}"
Sleep 75
SendInput "{Esc}"
return SubStr(A_Clipboard, StrLen(command) + 1)
}
:*:m;copy::
{
SendInput "{Esc}"
Sleep 75
; Get item name
itemName := GetTabInfo("/itemname ")
; Get all item lores
itemLores := []
loresCount := 10
index := 1
while (index <= loresCount)
{
itemLore := GetTabInfo("/itemlore set " . index . " ")
if (itemLore == "")
{
break
}
itemLores.Push(itemLore)
index++
}
; Move to next item
SendInput "{WheelDown}"
; Set item name
SendCommand ("/itemname " itemName)
; Set all item lores
index := 1
while (index <= itemLores.Length)
{
Sleep 2500
SendCommand ("/itemlore add " itemLores[index])
index++
}
SendInput "{Space down}"
Sleep 75
SendInput "{Space up}"
}
F24 & c::
{
contents := ""
lastClipboard := ""
SEPERATOR := "`n`n################################`n`n"
index := 1
while (index <= 50)
{
SendInput "{Ctrl down}a{Ctrl up}"
Sleep 30
SendInput "{Ctrl down}j{Ctrl up}"
Sleep 30
if lastClipboard == A_Clipboard
{
break
}
lastClipboard := A_Clipboard
contents .= A_Clipboard . SEPERATOR
SendInput "{PgDn}"
Sleep 200
index++
}
A_Clipboard := SubStr(contents, 1, StrLen(contents) - StrLen(SEPERATOR))
}
PasteSinglePage(contents)
{
contents := StrSplit(contents, "§")
A_Clipboard := "§" ; Because it has to be pasted in using ctrl+v and cannot simply be typed
SendInput "{Ctrl down}a{Ctrl up}"
index := 1
while (index <= contents.Length)
{
SendText contents[index]
if index < contents.Length
{
Sleep 25
SendInput "{Ctrl down}k{Ctrl up}"
Sleep 25
}
index++
}
}
F24 & v::
{
fullContents := StrReplace(A_Clipboard, "`r", "")
contents := StrSplit(fullContents, "`n`n################################`n`n")
index := 1
while (index <= contents.Length)
{
PasteSinglePage(contents[index])
Sleep 75
SendInput "{PgDn}"
index++
}
A_Clipboard := fullContents
}
F24 & p::
{
SendCommand "/sethome __beacon_temp"
SendCommand "/home beacon"
KeyWait "Tab", "D"
SendCommand "/home __beacon_temp"
SendCommand "/delhome __beacon_temp"
}
F24 & 3::
{
SendCommand "/delhome __temp"
SendCommand "/sethome __temp"
}
F24 & 4::
{
SendCommand "/home __temp"
}
F24 & i::
{
SendCommand "/home s"
}
F24 & q::
{
SendCommand "/home d"
}
F24 & 1::
{
SendCommand "/back"
}
F24 & u::
{
SendInput "{End}{Shift down}{Home}{Shift up}"
}
F24 & h::
{
SendInput "{Backspace}"
}
F24 & t::
{
SendInput "{Ctrl down}{Backspace}{Ctrl up}"
}
F24 & n::
{
SendInput "{Backspace 5}"
}
/::
{
global InCommand
InCommand := true
SendInput "{/}"
}
Up::
{
global InCommand
InCommand := true
SendInput "{Up}"
}
;Enter::
;{
; global InCommand
; if InCommand
; {
; SendInput "{Enter}"
; InCommand := false
; return
; }
; InCommand := false
; SendText " &f</&cAscyt&f>"
; SendInput "{Home}"
; SendText "&b"
; SendInput "{Enter}"
;}
}
#HotIf WinActive("ahk_exe TS4_x64.exe") && IsEnabled
{
Space::0
!WheelUp::PgUp
!WheelDown::PgDn
`;::
{
PosX := 0
PosY := 0
MouseGetPos &PosX, &PosY
MouseClick "Left", 2537, 71, 1, 0
MouseMove PosX, PosY, 0
}
}