I'm still working on this VBScript script that types things for you for a video game I play. The reason why I'm still working on it is because I can't find a user-friendly way to stop the loop on the very bottom (Ctrl+F and type Do While
). Every single thing works except for this stupid loop.
I've tried making a batch script that is just pause
and to check for cmd.exe
's process, but that didn't work for some reason. If you could figure it out, I'd prefer for that to be the way to end the loop. However, I don't really care which way you do it, as long as it's somewhat user-friendly (manually ending the wscript.exe
process in Task Manager would obviously not be user-friendly).
Set objC = WScript.CreateObject ("WScript.Shell")
Sub sleep(Timesec)
objC.Run "Timeout /T " & Timesec & " /nobreak", 0, True
End Sub
sleep(1)
objA = False
objH = False
objF = MsgBox("The Sell All Script that is a meme. By Vncz. Start?", 68, "Hello!")
Function chatsMessageBox()
Do
MsgBox "No."
Loop
End Function
If objF = vbYes Then
objB = InputBox("What is the username for your alt to pay? ALL LOWERCASE PLEASE, and '+(-)' for underscores.", "Username to pay")
Else
End If
If objB = "" Then
objH = True
Else
xdddddddddddddd = MsgBox("Press OK to check the username.", 64, "Check Username")
End If
If objF = vbNo Then
objH = True
MsgBox "Canceled."
Else
End If
If objH = True Then
objA = False
ElseIf objB = "chatshitgetsplit" Then
objD = MsgBox("No.", "16", "No.")
Else
objE = MsgBox("Press OK to start the loop; run stop.bat to stop the loop.", 64, "You're in!")
End If
If objD = vbOK Then
chatsMessageBox()
Else
End If
If objE = vbOK Then
objA = True
Else
End If
'[]
'In place of this comment, stop the loop somehow (If something, objA = False)
'[]
Do While objA = True
sleep(5)
objC.SendKeys "t"
sleep(1)
objC.SendKeys "/sell all"
sleep(1)
objC.SendKeys "~"
sleep(5)
objC.SendKeys "t"
sleep(1)
objC.SendKeys "/pay " & objB & " 10000"
sleep(1)
objC.SendKeys "~"
Loop