vbscript


SendKeys windows + Another key


I am trying to open a process on the taskbar by using the shortcut "Windows + 2", or any other number. My code looks like this
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Sendkeys "(^{ESC}2)"
The code only opens the windows menu then types 2. How do I send both simultaneously?
(P.S., I do not wish to open the program using the run command through its location on system.)

Related Links

Ping list of servers with VBS
vbscript replace text - not in all document
Trying to run .vbs as a startup program. Forcing to run in cscript. Want it to run in background, instead of having a script host window open
VBScript Case statement query
How to check if field ID exists?
Comparing WMI DateTime to String in Query
vbscript to save sync issues folder emails to a folder
What is “if <> 6” in classic asp?
Running command on remote machine using WMI
Illegal Syntax. Expected valid start name character
vbscript runtime error object variable not set when using object.writeline
VBScript/Classic ASP permission denied with fso.OpenTextFile after several uses
Creating Start Menu icons with sub folders
Can VBScript automatically log into a website and perform actions via CreateObject(InternetExploerer)?
Move aged mail to another file in OST using macro
Sort listbox entries by name

Categories

HOME
bluetooth
vbscript
ngrx
onedrive
read-eval-print-loop
cakephp-2.5
packages
dxl
win32gui
installshield
acquia
qore
applepay
facebook-php-sdk
qt-creator
correlation
ibm-odm
hapi
tostring
apache-metamodel
propel
http-status-code-504
connection-string
crystal-reports-2008
java-3d
tokenize
web-sql
format-specifiers
hammerspoon
react-css-modules
linkerd
jaxb2
windows-server-2000
libssl
kendo-datasource
phonegap
semantic-versioning
google-qpx-express-api
copying
wallpaper
jmonkeyengine
vxworks
dosbox
disassembling
qwerty
space-complexity
twitch
vapor
splice
greenrobot-eventbus
preconditions
mapzen
arena-simulation
heightmap
.net-4.6.2
gabor-filter
yii2-extension
darcs
boost-preprocessor
r-forge
zendesk-app
imanage
time-and-attendance
abcpdf9
django-debug-toolbar
gstreamer-0.10
holder.js
hill-climbing
rvest
pickadate
suffix-tree
hsv
eclipse-clp
cannon.js
qdialog
spidermonkey
cakephp-3.1
tableau-online
clipperlib
bridge.net
truevault
javax.mail
nsmutabledictionary
dia
clicktag
codeigniter-url
relocation
codeigniter-routing
client-side-templating
hippomocks
marmalade
stxxl
imdbpy
ms-project-server-2010
comaddin
unc
javaspaces
ticoredatasync
mercurial-server
hamachi
wise
gin
web-architecture
memory-size

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App