Results 1 to 4 of 4

Thread: Getting keys pressed

  1. #1

    Thread Starter
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314

    Post


    I want to be able to have my program run in the background and the user can press function keys my program will react to.

    I am able to do it if my program is the active one but not when the user has clicked onto another program.


    Thanks for you help in advance...

  2. #2
    New Member
    Join Date
    Jul 1999
    Location
    HKSAR
    Posts
    9

    Post

    use the API getasynckeystate...

    add a timer , set interval to 1 millisecs
    then execute getasynckeystate ( keycode ) to test whether that specific key is pressed

    ( the API entry is in the api viewer... )

  3. #3

    Thread Starter
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314

    Post


    Thank you... That worked Just Fine!!!

  4. #4
    New Member
    Join Date
    Feb 2000
    Posts
    14

    Post

    Im making a similer program I have VB3 could you tell me how to use the API?

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