tags:

views:

114

answers:

3

Well, I am making a program, (I need help with the codes) to hit the space bar every * seconds. When you hold down a key it will spam 3 times every 2 seconds. Or whenever you press space (meaning the key). can you help?
I need the exact codes.
I've tried Sendkeys.send {"Space"} Etc.

I've been trying for a while. I cant seem to figure it out. Please simple codes if possible.

A: 

im not sure what programming language you are using, but try using the code for "space" from http://www.asciitable.com/.

Scott M.
A: 

Create a Timer object that is enabled and in it's Tick event call the KeyPress event for the object that you want to press space for. The arguments of the KeyPress event should hold the spacebar value.

This will be the starting point for that type of code. This assumes of course that you just want to press space in your own application.

Sorry no code was provided, I have not programmed in VB in quite a while.

Robert Massaioli
A: 

Try

SendKeys " "

Space isn't really a special key - it's typed, so you don't need a special key code.

Damovisa