Results 1 to 2 of 2

Thread: Waiting for a key

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Post

    How can you ask the computer to ALLWAYS wait for a key.. But still funtion.. like, this key ( the 4 arrows) are how the Person moves around.

    Im think of a Wend Command But that will freeze it up..
    What could I do?

    Thankyou,
    Evan

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Dallas,TX
    Posts
    170

    Post

    Why not use the keypress event?

    Otherwise, use something like this:

    While 'No keypress'
    DoEvents()

    The key is using the function DoEvents() while its waiting. Otherwise just use the keypress event for more efficient processing.

    Phil

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