Hack Forums

Full Version: Limited VBS Sript Maker v 1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ok, so, now that i've figured out what i need to make a file that presses keys for you, here's a batch file that will be able to create vbs files.

Limited VBS Sript Maker v 1.0

Code:
@echo off
title Limited VBS Sript Maker v 1.0
echo LIMITED VBS SCRIPT MAKER V 1.0
echo Created by Eric Wright
echo (C) 2008, all rights reserved
echo.
echo press then number "4" key to continue...
set /p quick=
if %quick%==1 goto quick1
if %quick%==2 goto quick2
if %quick%==3 goto quick3
if %quick%==4 goto quick4
:quick4
cls
echo So you want to create a vbs script easily wihtout having to type all that other junk? ok...here we go
pause>nul
cls
set /p name=What do you want to call your script?
set /p mainloc=where do you want to save your script? No answer will put it in C:\  
echo set ss = createobject("wscript.shell") >> %mainloc%\%name%.vbs
echo.
echo Do you want to see the key-commands? (y/n)
set /p answer=
if %answer%==y goto yes
if %answer%==n goto no
:yes
:quick1
echo Please type the location of your help file (If in the same directory, you don't have to):
echo.
echo Do NOT type the file itself, make sure it is named "keys.txt"
set /p location=
type "%location%\keys.txt"
pause>nul
cls
:no
cls
echo Just a note of how to use this program:
echo If you are opening a file or program, please type the location AND full filename of the program or file.
echo If you are wanting it to type something, ONLY type the letter(s) you wish to be typed.
echo.
echo Let's begin!!!
pause>nul
cls
echo View the keys? (y/n)
set /p answer2=
if %answer2%==y goto yes
cls
echo Set to run/open file or program? (1)
echo Set to type key? (2)
echo Exit? (3)
set /p choice=
if %choice%==1 goto :1
if %choice%==2 goto :2
if %choice%==3 goto :3
cls

:1
:quick2
echo Please Type the location AND full name of the program or file:
set /p landn=
echo ss.run "%landn%" >> %mainloc%\%name%.vbs
echo wscript.sleep 500 >> %mainloc%\%name%.vbs
goto :no
:2
:quick3
echo Please type the key(s) you want pressed:
set /p keyspressed=
echo ss.sendkeys "%keyspressed%" >> %mainloc%\%name%.vbs
goto :no
:3
exit


the "view keys" thing won't work unless you have a separate text file containing a list of the keys, so here are the keys:

Code:
Key    
Argument



BACKSPACE
{BACKSPACE}, {BS}, or {BKSP}

BREAK
{BREAK}

CAPS LOCK
{CAPSLOCK}

DEL or DELETE
{DELETE} or {DEL}

DOWN ARROW
{DOWN}

END
{END}

ENTER
{ENTER} or ~

ESC
{ESC}

HELP
{HELP}

HOME
{HOME}

INS or INSERT
{INSERT} or {INS}

LEFT ARROW
{LEFT}

NUM LOCK
{NUMLOCK}

PAGE DOWN
{PGDN}

PAGE UP
{PGUP}

PRINT SCREEN
{PRTSC}

RIGHT ARROW
{RIGHT}

SCROLL LOCK
{SCROLLLOCK}

TAB
{TAB}

UP ARROW
{UP}

F1
{F1}

F2
{F2}

F3
{F3}

F4
{F4}

F5
{F5}

F6
{F6}

F7
{F7}

F8
{F8}

F9
{F9}

F10
{F10}

F11
{F11}

F12
{F12}

F13
{F13}

F14
{F14}

F15
{F15}

F16
{F16}

SHIFT
+

CTRL
^

ALT
%



shift, ctrl, and alt do not go in brackets, but beside the key you're using them with, such as:

%{f4} Alt+F4

or ^%{del} Ctrl+Alt+Del

all credit for those keys are on my tutorial thread.
Not bad.Not bad.
it's limited, cuz i don't know everything bout vbs scripts....lol. so all it can do is open a program and press keys. that's it.
oops!
nice work pal
this batch script is very useful
i've made a minor update. I've added the "wait" option to it now.

Code:
:home
@echo off
title Limited VBS Sript Maker v 1.0
color 0a
echo LIMITED VBS SCRIPT MAKER V 1.0
echo Created by Eric Wright
echo (C) 2008, all rights reserved
echo.
echo You MUST type "enter" in order to continue...
set /p quick=
if %quick%==1 goto quick1
if %quick%==2 goto quick2
if %quick%==3 goto quick3
if %quick%==4 goto quick4
if %quick%==enter goto quick5
goto :home
:quick5
cls
set /p name=What do you want to call your script?
set /p mainloc=where do you want to save your script? No answer will put it in C:\  
echo set ss = createobject("wscript.shell") >> %mainloc%\%name%.vbs
echo.
echo Do you want to see the key-commands? (y/n)
set /p answer=
if %answer%==y goto yes
if %answer%==n goto no
:yes
:quick1
echo Please type the location of your help file (If in the same directory, you don't have to):
echo.
echo Do NOT type the file itself, make sure it is named "keys.txt"
set /p location=
type "%location%\keys.txt"
pause>nul
cls
:no
cls
echo Just a note of how to use this program:
echo If you are opening a file or program, please type the location AND full filename of the program or file.
echo If you are wanting it to type something, ONLY type the letter(s) you wish to be typed.
echo.
echo Let's begin!!!
pause>nul
cls
echo View the keys? (y/n)
set /p answer2=
if %answer2%==y goto yes
cls
echo Set to run/open file or program? (1)
echo Set to type key? (2)
echo set wait period? (3)
echo Exit? (4)
set /p choice=
if %choice%==1 goto :1
if %choice%==2 goto :2
if %choice%==3 goto :3
cls

:1
:quick2
echo Please Type the location AND full name of the program or file:
set /p landn=
echo ss.run "%landn%" >> %mainloc%\%name%.vbs
echo wscript.sleep 500 >> %mainloc%\%name%.vbs
goto :no
:2
:quick3
echo Please type the key(s) you want pressed:
set /p keyspressed=
echo ss.sendkeys "%keyspressed%" >> %mainloc%\%name%.vbs
goto :no
:3
:quick4
echo Please type the amount of time (in MILLISECONDS) that you want to wair before the next command:
set /p wait=
echo wscript.sleep %wait% >> %mainloc%\%name%.vbs
goto :no
:4
exit
Reference URL's