Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can someone help me to make auto press keyboard ( Up, down, left , right) For My Games

Thank you ,,
Posted

1 solution

You can use the SendKeys.SendWait[^] method:
VB.NET
SendKeys.SendWait("{UP}") ' up arrow
SendKeys.SendWait("{LEFT}") ' left arrow
SendKeys.SendWait("{DOWN}") ' down arrow
SendKeys.SendWait("{RIGHT}") ' right arrow

Note that this method sends keystrokes to the active window.
 
Share this answer
 
Comments
Member 10890277 3-Jul-14 12:26pm    
How to use sendkeys.sendwait Method For "Lostsaga.exe"
Thomas Daniels 3-Jul-14 12:49pm    
To do that, first activate the other window and then send keys to it. Have a look here: http://stackoverflow.com/questions/2817707/find-and-activate-an-applications-window[^]
Yusril 27-Dec-15 18:27pm    
wkwkwkw .. buat lostsaga :v gila lu ndro nyari disini :v yng paste udh 20+
gw aja nyari disini buat program :V :V

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900