Hii Elzaimer
Your code was complicated i made a short version try this: PZPS756.000
but one problem is in SB timer cant restart so may be anyone help and improve the code so that timer can restart .
If No Key Is Pressed In 5 Second Then It Show "You Lost Starting Again In 5 Second"
But There Is Problem That With The Timer That It Doesn't Restart When We Have Give Correct Answer.
Your code was complicated i made a short version try this: PZPS756.000
but one problem is in SB timer cant restart so may be anyone help and improve the code so that timer can restart .
(06-24-2024, 12:30 PM)AbsoluteBeginner Wrote: Also, there doesn't seem to be any code in your "test" routine that tells the program what to do if no key is pressed. Therefore, the program does not stop and does not wait for a key to be pressed.AB Was Right See My Example I Have Used Timer.
If No Key Is Pressed In 5 Second Then It Show "You Lost Starting Again In 5 Second"
But There Is Problem That With The Timer That It Doesn't Restart When We Have Give Correct Answer.
ZS