Script for executable idle timer
Dr. Hawkins
dochawk at gmail.com
Wed Nov 13 10:47:38 EST 2013
On Wed, Nov 13, 2013 at 6:08 AM, Magicgate Software - Skip Kimpel <
skip at magicgate.com> wrote:
>
> So ideally, if that application had not been "touched" for over an hour, I
> would like it to quit on it's own.
>
log when keys are pressed:
on keyUp
global lastAct time
set the lastActTime to the seconds
pass keyUp
end keyUp
on checkIdle
global lastActTime
if the seconds > lastActTime + 3600 then
close this stack --or whatever, last chance dialog, etc.
end if
send checkIdle to me in 30 minutes
end checkIdle
and in openStack, have a
send checkIdle to me in 30 minutes
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list