Sunday 15 June 2014

vbscript - Why won't my VBS Spam Bot work? -



vbscript - Why won't my VBS Spam Bot work? -

i working on spam bot in vbs. however, wrong code. whenever run vbs computer lags crashes. know bit basic, hence why asking more experienced. please give me right code in order work.

option explicit dim x,y,obj,v,o set obj=createobject("wscript.shell") x=inputbox("what spam?") v=inputbox("how many times spam?") o=inputbox("how many seconds want select textbox?") wscript.sleep o & 000 until y=v obj.sendkeys (x & "{enter}") y=y+1 loop wscript.quit

~ thanks

a helpful tip didn't notice did quit inexperienced vbs -

wscript.sleep o & 000

the ampersand (&) character logical equivalent of and, similar or , not, in logic, and used in if statements check whether both, example, foo , bar equivalenet each other; example:

variable1 = true variable2 = true if(variable1 & variable2) homecoming true else homecoming false

this homecoming true, both variables set true.

i understand trying milliseconds user input of seconds. might improve achieved making variable:

o = o * 1000;

then, got info in form of string, parse integer form:

milseconds = cint(o);

probably thought check whether o had non-numeric characters beforehand prevent errors.

hope can help go on working on it. though spam-bots frowned upon here, think they're learning exercise.

vbscript

No comments:

Post a Comment