+ 1

Is it possible to create a time lapse in a script?

Let's say I want the script to display something so the user can read it, and then have the user enter an imput. How can I do this without having to input a value first?

5th Aug 2016, 5:58 AM
Playjoy “Kungpoww” Of Death
Playjoy “Kungpoww” Of Death - avatar
2 Respuestas
+ 3
Display the passage in the top and then ask for input at the bottom. The user will read the text and whenever he's finished, he'll enter the required data. But I guess this is not exactly what you had in mind, is it? When the time for reading a text is supposed to be limited, like an exam or such, we use a Timer. So when the program runs, a count down begins in the background, and when it's finished, some code will be executed automatically. Like hiding the text and asking for input. Google "using Timer in C#" for more info. It's just too hard to explain here.
5th Aug 2016, 1:21 PM
Alireza M
Alireza M - avatar
0
I tried to use Private static System. Timers.Timer aTimer; (as shown on the website) but it keeps saying the member static must precede with the member type and name.
5th Aug 2016, 4:01 PM
Playjoy “Kungpoww” Of Death
Playjoy “Kungpoww” Of Death - avatar