Timeout condition..

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Timeout condition..

Post by tasdvl9 » Tue Nov 18, 2014 9:39 pm

Hi All,

I'm looking to implement a timeout condition when my app has no activity.
In other words, if the user isn't clicking on controls or using the app I'd like a timeout in place so they can log back in after the timeout limit has expired.

Any thoughts on this?

Thanks.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Timeout condition..

Post by jmburnod » Tue Nov 18, 2014 10:29 pm

Hi tasdvl,

You have to write a "send in time" loop which check the value of a variable.
When the mouse move you set this variable to the seconds.
You have also to define the latence time you want
When the value of the variable + the latence time > the seconds you log the user back
Best regards
Jean-Marc
https://alternatic.ch

tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Timeout condition..

Post by tasdvl9 » Tue Nov 18, 2014 10:36 pm

Thanks so Much!

I appreciate the fast response.

Post Reply