Hack Forums

Full Version: Auto-talker in Batch/VBS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Inspired by Neotec, credit to him also.

copy paste this into notepad and save as something.vbs

Quote:@echo off
title Auto Writer!
:intro
echo .
echo ----------------------------------------------------------------------------
echo ---------------------------Batch / VBS autowriter---------------------------
echo ----------------------------------------------------------------------------
echo .
echo .
set /p message=Type message to Autowrite:
echo .
echo .
echo set ss = createobject("wscript.shell")>>macro.vbs
echo wscript.sleep 5000>>macro.vbs
echo do >>macro.vbs
echo ss.sendkeys "%message%" >>macro.vbs
echo ss.sendkeys "{enter}">>macro.vbs
echo Time between each repeat?
set /p time=In seconds:
echo wscript.sleep %time%000 >>macro.vbs
echo loop >>macro.vbs
echo .
echo .
echo press any key to start the macro
pause >nul
start macro.vbs
echo .
echo macro will start in 5 seconds!
:stop
set /p stop=Press "s" to stop the macro:
if %stop%==s goto end
goto stop
:end
tskill wscript
del macro.vbs
pause
cls
goto intro

Very userfriendly and easy to use. Neotec's one is hard to stop since it spams while you try to kill the process..so i wanted to take it a little further, Credits to neotec.
NICE lol

This gives me an idea... =]

Anyways.

tskill doesn't work on my computer..
Can you help me ?
use

Code:
tskill /f /im processyouwanttokill

place whatever process you want to kill in "processyouwanttokill", and that should work for you.
can u help me using vbs using the echo command, is it just typing the sentences of the vbscript with echo in front of each one?
Very cool post mathias. I was hopeing to find something similar to this that I can look at...
TILO, no, you need:

Code:
>> yourfile.vbs

at the end of it, like so:

Code:
echo @echo off >> dumby.bat
echo :A >> dumby.bat
echo start >> dumby.bat
echo goto :a >> dumby.bat
start dumby.bat
exit
Psinetic Wrote:TILO, no, you need:

Code:
>> yourfile.vbs

at the end of it, like so:

Code:
echo @echo off >> dumby.bat
echo :A >> dumby.bat
echo start >> dumby.bat
echo goto :a >> dumby.bat
start dumby.bat
exit

Hey psinetic, good to see your still here, heard you got banned.
no, i'm still here. i was banned, but Omni and I were able to talk it through.
Reference URL's