Tengo problemas con el siguiente código VBS. Funciona solo algunas veces, e incluso entonces falla rápidamente. ¿Por qué?¿Por qué falla este código VBS con un error "No coinciden los tipos: '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
error:
Script: C:\Users\John\Downloads\SingleHatSniper.vbs
Line: 14
Char: 1
Error: Type mismatch: 'CInt'
Code: 800A000D
Source: Microsoft VBScript runtime error
Por favor, ayúdame, no soy tan grande con EBV. Eso está claro, mi amigo me ayudó a escribir esto.
no seré ningún tipo de ayuda, pero "a tope" tiene que ser el nombre más dolorosa posible. Me reía todo el tiempo que intentaba llamar métodos. "Do While Butt.Busy"? Heeheeheehee – Interrobang
Elija un título adecuado para su pregunta para que la gente se interese por ella. "¿Podrías explicarme esto?" No dice nada sobre tu pregunta. – deceze
@Inter El emparejado con el nombre "Interrobang" lo hace bastante sugerente, ¿no? ;-P – deceze