Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
3.00/5 (4 votes)
See more:
Hi,
Can any one help me with this problem. I need make a method which press SPACE keyboard button and after 1sec. program releases that button.
I have no ideas how to do this...
Posted

1 solution

You can use the SendKeys[^] method executed in a loop. However, depending on what you are trying to accomplish it may be better to call the indended method directly rather than simulating a keystroke.
 
Share this answer
 
v4
Comments
RaviRanjanKr 29-Nov-10 10:42am    
Very good answer.
Take a 5
[no name] 29-Nov-10 10:53am    
ManfredRBihy: Was the edit really necessary? Did the typo "you" rather than "you're" bother you that much or distract from the answer to make it worth while?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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