-
Notifications
You must be signed in to change notification settings - Fork 1
/
ssgmacro.ahk
67 lines (59 loc) · 1.32 KB
/
ssgmacro.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
;
; Minecraft Reset Script v1.1
; Author: Penguen482
;
#NoEnv
SetWorkingDir %A_ScriptDir%
DELAY = 1 ; Set this to 0 for no delay, set this to 1 for delay between key presses
if DELAY
SetKeyDelay , 1 ; Change this value to increase delay between key presses
else {
SendMode Input
}
CreateWorld()
{
send {Tab}{Enter}{Tab}{Tab}{Tab}{Enter}{Tab}{Tab}{Enter}{Enter}{Enter}{Tab}{Tab}{Tab}{Tab}{Enter}{Tab}{Tab}{Tab}{2}{4}{8}{3}{3}{1}{3}{3}{8}{2}{4}{0}{2}{3}{4}{8}{9}{6}{4}{Enter}
}
ExitWorld()
{
send {Esc}+{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}
}
#IfWinActive, Minecraft
{
F7::
WinGetPos, X, Y, W, H, Minecraft
WinGetActiveTitle, Title
IfNotInString Title, player
CreateWorld()
else {
ExitWorld()
Loop {
IfWinActive, Minecraft
{
PixelSearch, Px, Py, 0, 0, W, H, 0x00FCFC, 1, Fast
if (!ErrorLevel) {
Sleep, 100
IfWinActive, Minecraft
{
CreateWorld()
break
}
}
}
}
}
return
F6::
ExitWorld()
return
::
WinGetActiveTitle, Title
IfNotInString Title, player
{
IfWinActive, Minecraft
{
CreateWorld()
}
}
return
}