-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstartinstance.ahk
71 lines (53 loc) · 1.72 KB
/
startinstance.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\2012\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 - [%file%]
WinWait Roblox
;ClassNN: msctls_statusbar321 'ready'!
;Text: Ready
;command bar ClassNN: RichEdit20A1
;loop{
; sleep, 200
; ControlGet, a, Hwnd, , Button1, Roblox
; ControlGetText, istext, msctls_statusbar321, %titlename%
;} until (%istext%==Ready) or (errorlevel=0)
;ControlClick, Button1, Roblox
WinWait %titlename%
istext=no
loop {
sleep, 200
ControlGetText, istext, msctls_statusbar321, %titlename%
} until (%istext%==Ready)
Sleep, 3200
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
ControlSetText, RichEdit20A1, _G.file="%file%", %titlename%
Sleep, 100
Send, {Enter}
Sleep, 400
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
ControlSetText, RichEdit20A1, dofile("http://www.nickoakzhost.nigga/serverstart.lua?v103"), %titlename%
Sleep, 100
Send, {Enter}
Sleep, 400
WinActivate, %titlename%
ControlFocus, RichEdit20A1, %titlename%
;MsgBox, "Ready to send..."
;MsgBox, %serverstart%
ControlSetText, RichEdit20A1, %serverstart%, %titlename%
;pSendChars(serverstart,"RichEdit20A1",titlename)
Sleep, 100
Send, {Enter}