AW: How to implement a timebased reminder?
Jim Ault
jimaultwins at yahoo.com
Fri Jun 11 08:00:54 EDT 2010
make a check box button
on mouseup
callMyStackScriptTimer
end mouseUp
on callMyStackScriptTimer waitSecs
if waitSecs is empty then put 10 into waitSecs
if the hilight of btn "timerStatus" is true then
-- do these commands
send "callMyStackScriptTimer" in waitSecs seconds
end if
end callMyStackScriptTimer
--now the script can be called by different routines
--setting the hilight of the check box will stop any 'send in' calls
--obviously, if your mouseup turns off the check box, the loop will
skip the tasks
This is just one way of accomplishing the task.
Jim Ault
Las Vegas
On Jun 11, 2010, at 4:51 AM, Tiemo Hollmann TB wrote:
> Hi Klaus,
> yes I tried it already with ditto, but my Win7 machine started
> smoking and
> making funny noise!
> Using "send in" in a self calling handler to get the infinite "loop"
> or what
> would be the calling handler?
> Thanks
> Tiemo
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
>> bounces at lists.runrev.com] Im Auftrag von Klaus on-rev
>> Gesendet: Freitag, 11. Juni 2010 13:39
>> An: How to use Revolution
>> Betreff: Re: How to implement a timebased reminder?
>>
>> Hi Tiemo,
>>
>>> Hello,
>>>
>>> I would like to create a timebased reminder (like a reminder from a
>> calendar
>>> app), which runs the whole day "in the background"/ as a task icon
>> (windows)
>>> or gadget and reminds me in settable intervals about anything.
>>>
>>> How do you realize this kind of app with using a minimum of the
>> processor
>>> power? Using idle and idlerate or any kind of loop or perhaps
>> something
>>> completely different?
>>
>> Do not use IDLE!
>>
>>> Which would be the less consuming approach?
>>>
>>> Any hint welcome
>>
>> this also can be done with "ditto" :-D
>>
>> No, just kidding, use "send ... in... " for this purpose!
>>
More information about the use-livecode
mailing list