Results 1 to 3 of 3

Thread: Still dun get the GetAnsc.,....

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    KL.......
    Posts
    13

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    KL.......
    Posts
    13
    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

  3. #3
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    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
  •  



Click Here to Expand Forum to Full Width