Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How to send the Left key through SendKeys function

14 Oct 2011   #1

Windows 7 Enterprise with SP1 x64bit
How to send the Left key through SendKeys function


I'm new to this forum. I have some Vb Scripting knowledge and am writing vb script with send keys to add keyboard in Windows 7. I can send Tab, Enter, UP and Down arrow keys, but i could not able to send the LEFT arrow key. I tried but not working.

Here is the vbs which i have created....

Option Explicit
Dim objShell, WshShell
set objShell = CreateObject("WScript.Shell")"control")
WScript.Sleep 500
objShell.SendKeys "{TAB 24}"
objShell.SendKeys "{ENTER}"
WScript.Sleep 500
objShell.SendKeys "{ENTER}"
WScript.Sleep 500
objShell.SendKeys "{TAB 2}"
objShell.SendKeys "{ENTER}"
objShell.SendKeys "{e}"
objShell.SendKeys "{LEFT}"

Due to this i am unable to complete my task.

Any help or suggestion highly appreciated.


My System SpecsSystem Spec


 How to send the Left key through SendKeys function

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:08 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33