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 / Easy Question about pressing a key in dbpro

Author
Message
Pankers
16
Years of Service
User Offline
Joined: 31st May 2008
Location:
Posted: 17th Aug 2008 00:17
Hello, I have been doing dbpro for a lil while but not too much to know alot..

well here is the thing. I have this code:



and the code goes on.. well how can I change that if inkey$() = "w" to like where if i press it, it only does it once, not if i hold it, it does it continuesly

example:

i press the w key really fast and it does it like 25 times, I only want it like if i press it, it does it once, and won't do it again unless i release that key and press it again

many thanks,

Pankers
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 17th Aug 2008 01:26 Edited at: 17th Aug 2008 01:30
[edit]
nvm code doesn't work
BTW use keystate instead it's way better

Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 17th Aug 2008 03:24
You should really, really, really take a few moments to search the forums for an answer before posting. If you scroll down a few topics in this thread, you'll discover that there are a couple of very very recent topics just like this one which have several answers to your question.
DB PROgrammer
17
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 18th Aug 2008 10:04
Try this.



Hope this helps


I'm Pro grammer.

Login to post a reply

Server time is: 2024-09-27 18:19:00
Your offset time is: 2024-09-27 18:19:00