The online racing simulator
visual basic code
(2 posts, started )
visual basic code
hi,
i'm making a light switch program, just to learn,
i have, that when i press a key i can do an event
now, i want the code that says:
If e.KeyChar = Chr(Keys.Escape) Then
press key: B for 500ms
this "press key: B for 500ms" but then so it works
i cant find how it should work
olso:
press key: B for 500ms
release key: B for 500ms

tyvm!
#2 - Stuff
Hi! Only way I know of to do this with DirectInput is to use the SendInput API.. I don't know of any .NET equivalent. Here are a couple links to get started: MSDN and API-Guide (see example link on that page for VB6 code using the API)

visual basic code
(2 posts, started )
FGED GREDG RDFGDR GSFDG