Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2014
    Thanked 0 Times in 0 Posts

    Auto Counter Need Help

    I have made an auto typer in notepad with this code and saved it as a .vbs with this code

    set shell = createobject("wscript.shell")
    strtext = inputbox("What message do you want?")
    strtimes = inputbox ("How many time? (ENTER A NUMBER")
    if not isnumeric(strtimes) then
    lol=msgbox("Write a number next time")
    end if
    msgbox "The message will start in 5 seconds"
    for i=1 to strtimes
    shell.sendkeys(strtext & "")
    Shell.SendKeys "{Enter}"

    It works just fine, but I want to try something different. For the the strtext= inputbox I want to input a number, lets say 1, and then for strtimes = inputbox, I want to insert another number, lets say 50, then I want the autotyper to count from 1 to 50 like so
    3.. and so on
    I am a beginner coder and I really dont know where to even begin with this project, if anyone could help me out with the code, and explain it too, that would be great

    Also with this current auto typer, I dont have a way to stop it, if I want it to say "test" 50 times, it says it 50 times before it stops. Is there anyway I can add a stop function to it too?

  2. #2
    Senior Coder
    Join Date
    Dec 2010
    Thanked 570 Times in 563 Posts
    wrong forum ... this forum is for Javascript, not for the Windows Scripting Host


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts