----boundary-LibPST-iamunique-1861506626_-_-
Content-type: text/plain
Marco,
If the following is what you meant then it doesn't work for me. The
cursor remains as the pointing hand
when the commandor is clicked and no actions can be initiated during the
wait time. So what did you
really mean?
-Doug
-----------------
MODULE Wait;
IMPORT Services, Out:=StdLog;
PROCEDURE Time (ms: INTEGER);
VAR time: LONGINT;
BEGIN
time := Services.Ticks() + ms;
WHILE Services.Ticks() < time DO
Services.actionHook.Step
END
END Time;
PROCEDURE Test*;
BEGIN
Out.String("start..");
Time(10000);
Out.String("stop.");
Out.Ln;
END Test;
END Wait.
--------------------
Marco Ciot wrote:
> Hello Helmut
>
> Sorry for not contributing earlier to this subject.
> I quickly read the follow ups and didn't really see a reason why to do such
> fuzzy things... sorry folks :)
>
> The solution to this indeed is to call Services.actionHook.Step during a
> timed loop.
> This procedure exactly does the stepping of the background tasks
> (Services.Actions) and works fine while being called on command level also.
> (It should not be called by Actions, however!)
> (Well, let me also clarify that this is my understanding of the module
> Services and not a documented feature.)
>
> How come you didn't try this yourself after having suggested it in xyBoss3?
>
> Note that by adding such a call in HostPorts.Input followed by a conditional
> Kernel.Sleep and having Services.actionHook.Step a little bit more robust
> towards calls from anywhere (even Actions) any BB system becomes much more
> responsive and won't do any excess CPU heating while tracking the mouse,
> e.g. making a text selection ;)
>
> Regards
> Marco Ciot
>
>
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1861506626_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt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