I have made a simple program that, given a string and how many times to repeat it, it waits a second and types that string N times, followed by an enter key. It is made for applications like skype. The waiting is so that you can get from the console to the application on time.Dim iSet s = WScript.CreateObject(WScript.Shell)i = WScript.Arguments(0)t = CInt(WScript.Arguments(1))WScript.Sleep 1000For c = 1 to t    s.SendKeys CStr(CInt(100 * (c-1) / (t-1))) + {%}:  + i + {ENTER}NextHow can this be improved? I hope there is a dynamic way to change to a certain application, as that would make the could more readable and better.
Command line VBScript spam bot
vbscript