I'm trying to make a vbs script to auto type in minecraft, I need this because i'm placing thousands of signs with the text [sellchest] and it takes too long to do by hand. The script I have sofar is this
set shellobj = CreateObject("WScript.Shell")
shellobj.run "cmd"
do
shellobj.sendkeys "["
wscript.sleep 100
Shellobj.sendkeys "s"
wscript.sleep 100
Shellobj.sendkeys "e"
wscript.sleep 100
Shellobj.sendkeys "l"
wscript.sleep 100
Shellobj.sendkeys "l"
wscript.sleep 100
Shellobj.sendkeys "c"
wscript.sleep 100
Shellobj.sendkeys "h"
wscript.sleep 100
Shellobj.sendkeys "e"
wscript.sleep 100
Shellobj.sendkeys "s"
wscript.sleep 100
Shellobj.sendkeys "t"
wscript.sleep 100
Shellobj.sendkeys "]"
wscript.sleep 1000
loop
what I need is to be able to press a key, then it does the script once. Is this possible? If so can someone help me and write one?