Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Small Question re Input Keys

Author
Message
stankarp
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: Australia
Posted: 26th Oct 2003 08:17
I want to record the result of an input key only once each time its pressed, ie, if the key is held down a bit longer, it only records 1 press until it is released and pressed again.

At the moment I am using wait 1000 as a temporary measure but wonder if there is a proper solution?

Thanks for help.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 26th Oct 2003 09:40


the function do_stuff() will only be done once when the 'w' key is pressed and it must be released before being pressed again.


Go on, click on my signature image, you know you want to
Favourite smiley>>>
stankarp
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: Australia
Posted: 29th Oct 2003 23:35
Sorry, forgot to say thanks.

I am giving it a try now.

Login to post a reply

Server time is: 2024-11-25 14:40:30
Your offset time is: 2024-11-25 14:40:30