----boundary-LibPST-iamunique-347371391_-_-
Content-type: text/plain
Dear Helmut
> All I need is to suspend my current foreground task and start it again
automatically not before a given (short) time.
The problem is, that if you allow windows to be resized and to nicely update
and the mouse to be allowed to do anything anyway, then what if the mouse
clicks on a command?
Then you'll have two foreground tasks! And you'll require full thread
functionality, which is not available in BB.
If however you say for a SHORT time, then what's the problem if the system
looks frozen during that time, but at least does all the background tasks as
it should? I find that a very good compromise as the frozen looks correspond
to the fact that the system is already busy with a foreground task
(command).
I guess, you should clarify more on the concrete application you want to use
this Delay function on. Certainly I'm not the only one who has become very
curious, now!
Regards
Marco
-----Original Message-----
From: blackbox{([at]})nowhere.xy
Collection
Sent: Saturday, May 13, 2006 00:02
To: BlackBox Mailing List
Subject: [BlackBox] - A Cookbook Topic: "Delay", "WaitUntil" and "Let's
see actions"
Dear BlackBox users,
first I would like to say thank you to everybody who send me an answer of my
cookbook request. I would like to explain what I need once again:
All I need is to suspend my current foreground task and start it again
automatically not before a given (short) time.
... my running program before the delay ...
Services.DoLaterContinue(notBefore)
... my running program after the delay ...
The procedure DoLaterContinue suspend (stop) my program and restart it at
the current position after the time notBefore. This maybe done via the
action control. It needn't the exact time. The notBefore is accurate enough.
Another solution maybe:
Just to have a call to the PROCEDURE "HostOrSystemWorkingLoop". It runs thru
all system tasks once and then returns the control to my program. It is just
a call back functions to keep the cooperative multitasking running. The time
should be use for updating & resize windows, doing the actions and so on.
And of course give the control back to my program.
I won't waste my computer power by doing silly loops. I couldn't believe
that a simple "wait a second" rise so much problems.
Regards
Helmut
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-347371391_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7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