Script for executable idle timer

dunbarx at aol.com dunbarx at aol.com
Wed Nov 13 17:16:26 CET 2013


I had thought that something like the following was what Devin meant early on. I am not sure where all the dialog and other stuff got into the act.


In a button somewhere:





on mouseUp
   set the noAction of this stack to "true"
   checkForInaction
end mouseUp
 
And in the stack script:



on checkForInaction var
   if the noAction of this stack = "true" then put random(999)
      set the noAction of this stack to "true"
   send "checkForInaction" to me in 5 seconds
end checkForInaction


on selectionChanged
   set the noAction of this stack to "false"
end selectionChanged


on mouseUp
      set the noAction of this stack to "false"
end mouseUp


on mouseMove
      set the noAction of this stack to "false"
end mouseMove


Craig Newman



-----Original Message-----
From: Magicgate Software - Skip Kimpel <skip at magicgate.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Nov 13, 2013 9:08 am
Subject: Re: Script for executable idle timer


Thanks everybody for your input on this.  I guess I was looking for
something a little less interactive from the user.  It is an application
that is part of the user's work flow all day long.  If I need to update the
application, I have found that certain users do not close the application
down and it runs through the night.  If I have to perform maintenance on it
and replace the executable, I am unable to because it is open by a user.

So ideally, if that application had not been "touched" for over an hour, I
would like it to quit on it's own.

Thanks again!


On Tue, Nov 12, 2013 at 7:50 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:

> Devin-
>
> Tuesday, November 12, 2013, 3:05:11 PM, you wrote:
>
> > So you'd have to modify the ask and answer dialog stacks in the IDE?
>
> Ah, OK - you didn't specify that this was with the ask and answer
> dialogs.
>
> --
> -Mark Wieder
>  ahsoftware at gmail.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list