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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -