0

I want to get string from user and limit the time for 5 sec, if he don't enter the string in this time print messege "no more time, bye!" how to do it? thanks you

1 Answers1

0

You can monitor the keyboard with something like this and include it in a timed loop.

f p
  • 3,165
  • 1
  • 27
  • 35