Advertisement
DoktorBass

Autotyper.vbs

Feb 4th, 2012
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' Copy the text below and save it in a text document as "autotyper.vbs"
  2. ' this should work for any windows pc XP and later
  3. ' Enjoy! ;)
  4.  
  5. 'By DoktorBass
  6.  
  7. Sub Initialize_Autotyper()
  8.  
  9.     Dim msg_Get
  10.     Dim times_Get
  11.     Dim lmsg_Get
  12.    
  13.     msg_Get = inputbox("Enter the Message: ")
  14.     times_Get = inputbox("Enter the number of times to post the message: ")
  15.     lmsg_Get = inputbox("Enter the last/signature message to post: ")
  16.    
  17.     Call Activate_AutoTyper(msg_Get, times_Get, lmsg_Get)
  18.    
  19. End Sub
  20.  
  21. Sub Activate_AutoTyper(msg, times, lmsg)
  22.  
  23.     Set shellobj = CreateObject("WScript.shell")
  24.    
  25.     WScript.sleep 5000
  26.    
  27.     For i = 0 To times
  28.    
  29.         shellobj.sendkeys msg
  30.         WScript.sleep 200
  31.         shellobj.sendkeys "{ENTER}"
  32.         WScript.sleep 750
  33.    
  34.     Next
  35.    
  36.     shellobj.sendkeys lmsg
  37.     WScript.sleep 200
  38.     shellobj.sendkeys "{ENTER}"
  39.     WScript.sleep 200
  40.    
  41.     Dim finishbox
  42.     finishbox = msgbox("Done!")
  43.    
  44.     WScript.Quit
  45.  
  46. End Sub
  47.  
  48. Call Initialize_Autotyper()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement