I am using the following code to check for inactivity and if it exceeds lets say 10 seconds, to logout the user. Once the threshold is reached, the user is logged out and presented with a login screen. If I close the login screen and launch the project from the ‘Launch window’, count starts from the beginning, but if I use the same login screen to log back in after an inactivity logout, the count does not start from the beginning and it seems that I am being logged out after a couple of seconds. Delay is set to 1000ms. Is there a way around it?
Here is the code:
if fpmi.system.getInactivitySeconds() > 10: