-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstartinstance2007.ahk
71 lines (50 loc) · 1.66 KB
/
startinstance2007.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
#SingleInstance Ignore
serverstart=%1%
file=%2%
path=C:\Users\nicen\Documents\finobehandler\
studiopath=F:\Finobe\2007\RobloxApp.exe
;FileRead, runcode, %path%serverstart.lua
;StringReplace,runcode,runcode,`r`n,%A_Space%,A
;StringReplace,runcode,runcode,putfilehere,%file%,A
pSendChars(string, control := "", WinTitle := "", WinText := "", ExcludeTitle := "", ExcludeText := "")
{
for k, char in StrSplit(string)
postmessage, WM_CHAR := 0x102, Asc(char),, %Control%, %WinTitle%, %WinText%, %ExcludeTitle%, %ExcludeText%
return
}
Run %studiopath% "%path%%file%"
titlename = Finobe Server - [%file%]
;WinWait Roblox
;ClassNN: msctls_statusbar321 'ready'!
;Text: Ready
;command bar ClassNN: RichEdit20A1
WinWait %titlename%
istext=no
loop {
sleep, 200
ControlGetText, istext, msctls_statusbar321, %titlename%
} until (%istext%==Ready)
Sleep, 2500
istext=no
loop {
sleep, 200
ControlGetText, istext, msctls_statusbar321, %titlename%
} until (%istext%==Ready)
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
ControlSetText, RichEdit20A1, _G.file="%file%", %titlename%
Send, {Enter}
Sleep, 900
gamestring=loadstring(game:HttpGet('http://www.nickoakzhost.nigga/serverstart.lua?v114',true))()
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
ControlSetText, RichEdit20A1, %gamestring%, %titlename%
Send, {Enter}
Sleep, 1100
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
;MsgBox, "Ready to send..."
;MsgBox, %serverstart%
ControlSetText, RichEdit20A1, %serverstart%, %titlename%
;pSendChars(serverstart,"RichEdit20A1",titlename)
Send, {Enter}