[squeak-dev] How do I "sleep 5"?
eduardoochs at gmail.com
Tue Feb 21 04:49:07 UTC 2023
a few days ago I asked for help on how to send a "synthetic" keyboard
event to a morph, and Karl Ramberg gave me exactly the right hints in
My code is ready except for documentation and comments - I'll work on
that in the next few days and then post the result here and on the
...but there's a feature that I want to add to it that - again =( -
needs something that I'm not being able to discover by myself. How do
I write a line of code that waits for 5 seconds, sort of like running
"sleep 5" in a shell, and that doesn't block the rest of the system?
If I have that I'll be able to run these two lines in a workspace,
self mySleep: 5000.
kf := self currentHand keyboardFocus.
switch the keyboard focus to something else by clicking on it, and
then the variable kf will be set to this "something else"...
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev