LOL.
Do you have at least TV remote at hands?
when you press say channel up button, it immediately switches the channel (the actual change might occur a bit later, but here we're talking about system response), but if you keep it pressed, it will slowly cycle between channels.
So I think I should do the code in the following way:
Once key is pressed, start counter, say to 100, and do pause 1 inside it. If user releases key before counter hits 100, then do the action. But if user keeps key pressed and counter reached say 200, do the action, reset counter and start again.
Bookmarks