Announcement

Collapse
No announcement yet.

Calling all VB Programmers!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling all VB Programmers!

    Right - What I want to do should be really simple, but I just can't fathom it out!

    I want to make my program do one thing if I PRESS AND HOLD a key down, and do another thing if I just press the key ONCE.

    All I can get so far is it to do the hold (i.e. keydown) action, but then followed by the press (i.e. keyup) action. Any ideas?

    If it helps, think of it like a CD player - press forward/back to skip tracks, hold the forward/back and you scan through the current track.

    ------------------
    Cheers,
    Steve

    "Life is what we make of it, yet most of us just fake"

    [This message has been edited by SteveC (edited 20 March 2001).]

  • #2
    Can you start a timer going when the key is pressed?

    You can then do a quick check to see how much time has passed. A short time would indicate a press. A long time would mean a key hold.
    Phils PC Mods - a rough guide

    Comment

    Working...
    X