|
-
Jun 13th, 2002, 07:01 AM
#1
Thread Starter
New Member
Still dun get the GetAnsc.,....
I have been referred a few times to used the GetAsnc or something like that to read user input, but until now, mine dun seem to register this kind of code.
SO I have resorted to the
if keycode=vbKeyDown
that sort of thing....What did I do wrong...??
Hate not me. Hate your weaknesses
-
Jun 13th, 2002, 07:51 AM
#2
Thread Starter
New Member
This was quoted by one of the users
As the other guy said, use the API call:
GetAsncKeyState()
then have som boolean switch that changes when GetAsncKeyState() is different from its previous value.
To check it against a previous value, just use another variable. I.e
a = GetAsncKeyState(40)
......Insert code
if GetAsncKeyState(40) <> a then BoolSwitch = NOT(BoolSwitch)
Whenver I type the above GetAsncKeyState it won't register in my VB. IS there anything wrong????
Hate not me. Hate your weaknesses
-
Jun 13th, 2002, 12:20 PM
#3
Addicted Member
the function is GetAsyncKeyState. here's the declaration.
Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
To understand recursion, one must first understand the concept of recursion.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|