Hi i'm making a Gamepad using VB i have to send letter 'a' continuously

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Joined
Oct 24, 2014
Messages
111
Helped
4
Reputation
8
Reaction score
3
Trophy points
18
Activity points
740
Hi i'm making a Gamepad using VB i have to send letter 'a' continuously to move forward....i.e i need keyboard.press 'a' and keyboard.release 'a' functions.
i used sendkeys but didnt worked..man didnt move becoz sendkeys press and release 'a' continuosly
i used keybd_event but didnt worked


i need some vb code : one button that press 'a' (aaaaaaaaaaaaaaaa)
another button releases 'a' (a stops typing)
 

Hi,

maybe use a timer: set it up to timeout every 200ms (or what you need)
* on timer event use: sendkey "a"

enable/disable the timer as you like

Klaus
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…