Sono in difficoltà con il seguente codice VBS. Funziona solo a volte, e anche in questo caso fallisce rapidamente. Perché?Perché questo codice VBS ha esito negativo con un errore "Tipo non corrispondente:" CInt ""?
Dim Butt
Set Butt = CreateObject("InternetExplorer.application")
Butt.visible = True
Butt2 = InputBox("Put the link to one hat you would like to snipe.", "Hat Selection")
Butt3 = InputBox("Enter the maximum amount of Robux you will spend on this hat.", "Maximum Payment")
Dim Proace
Set Proace = CreateObject("Microsoft.XMLHTTP")
Proace.Open "GET", "http://www.roblox.com", False
Proace.Send
Do
Do While Butt.Busy
WScript.sleep 200
Loop
St00f = CInt(Replace(Mid(St00f, (InStr(St00f, ">R$")+3), 8), "</b>", ""))
If St00f <= CInt(Butt3) Then
Butt.Navigate "javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions(""ctl00$cphRoblox$TabbedInfo$UserSalesTab$lstItemsForResale$ctrl0$lnkBuyNow"",%20"""",%20true,%20"""",%20"""",%20false,%20true))"
Exit Do
End If
Loop
Do While Butt.Busy
WScript.sleep 200
Loop
MsgBox("Congratulations! Your snipe was successful! You sniped "&Butt2&" for "&Butt3&" Robux!")
Butt.Quit
Set Butt = Nothing
Set Proace = Nothing
WScript.Quit
Errore:
Script: C:\Users\John\Downloads\SingleHatSniper.vbs
Line: 14
Char: 1
Error: Type mismatch: 'CInt'
Code: 800A000D
Source: Microsoft VBScript runtime error
Please help me, io non sono così grandi con VBS. Questo è chiaro, il mio amico mi ha aiutato a scrivere questo.
non sarò alcun aiuto, ma "Butt" deve essere il nome più dolorosa possibile. Vorrei solo ridere per tutto il tempo che stavo cercando di chiamare metodi su di esso. "Do While Butt.Busy"? Heeheeheehee. – Interrobang
Scegli un titolo appropriato per la tua domanda per attirare l'attenzione delle persone. "Potresti farmi passare attraverso questo" non dice nulla sulla tua domanda. – deceze
@Inter Quella accoppiata con il nome "Interrobang" lo rende piuttosto suggestivo, no? ;-P – deceze