What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » VB Keypress help

VB Keypress help
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. VB Keypress help
Ok I made a program that will double press W when the Up arrow was pressed once. I made it for a game. I tested it in Notepad and It works great. But when I go to use it in the game it does not work at all. Could any one explain to me why it don't work?

Heres my program:

code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyUp) Then
SendKeys "{W}"
SendKeys "{W}"
End If
End Sub
[Image: top.gif]
04-23-2006 11:10 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
VB Keypress help - by DJeX on 04-23-2006 at 11:10 PM
RE: VB Keypress help - by Adeptus on 04-23-2006 at 11:53 PM
RE: VB Keypress help - by matty on 04-24-2006 at 12:19 AM
RE: VB Keypress help - by DJeX on 04-24-2006 at 01:31 AM
RE: VB Keypress help - by rav0 on 04-24-2006 at 01:36 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On