Wait ... if no keystroke within 10 minutes then logout
Posted: Sun Oct 14, 2012 12:15 am
Any ideas how to code the following pseudocode?
I don't know how to sleep AND check for keystroke during the 10 minutes. Tips and pointers appreciated. Thanks.
Code: Select all
Arrive at location
Wait/sleep 10 minutes
if keystroke within 10 minutes
then
continue to point B
else
logout (that is, no keystroke in 10 minutes)
end if