-
Notifications
You must be signed in to change notification settings - Fork 1
/
NEWssgmacro.ahk
75 lines (66 loc) · 1.79 KB
/
NEWssgmacro.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
;
; Minecraft Reset Script v1.1
; Author: Penguen482
;
; Script Function:
; The following only apply inside the Minecraft window:
; 1) When on the title screen, the "Y" key will create a world on Easy
; 2) After loading in the world, "Y" will exit the world and then auto create another world on Easy 2483313382402348964
; 3) To just exit the world and not auto create world, press "U" on keyboard.
; 4) To change the "Y" and "U", change the keys before the double colon "::" and reload the script
; ONLY FOR 1.17
#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}{-}{3}{2}{9}{4}{7}{2}{5}{8}{9}{3}{6}{2}{0}{9}{9}{1}{1}{2}{6}{Enter}
}
ExitWorld()
{
send {Esc}+{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}
}
#IfWinActive, Minecraft
{
K::
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
}