Use SendKeys to 'type' a variable in VBScript -
can sendkeys type variable? example
set ws = createobject("wscript.shell") set typethis = want type whats here ws.sendkeys [i want type variable(typethis] ws.sendkeys "{enter}" wscript.sleep 100
simply pass variable sendkeys
method argument. when want assign value variable should not use keyword set
. use when want assign reference object.
set ws = createobject("wscript.shell") typethis = "i want type whats here" ws.sendkeys typethis wscript.sleep 1000
Comments
Post a Comment