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.

Code Snippets / Better way to get user input than using INPUT

Author
Message
shwuckie
21
Years of Service
User Offline
Joined: 9th May 2003
Location: Australia
Posted: 14th May 2003 11:25 Edited at: 14th May 2003 11:27
yo, i whipped this up in response to someone needing help in the forums, so if ya missed it there, here it is again

this uses the windows buffer for getting keypresses, advantage is that no matter the speed of a user system or their typing speed, it will get exactly what they enter, also allows you to limit the amount of input (in the example it is set to 20)

enjoy!



optic blast! megablast! have a blast!!

Login to post a reply

Server time is: 2024-11-24 04:48:28
Your offset time is: 2024-11-24 04:48:28