Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: question about TIMER and about Changing Mouse shape
From: "Alain Tougas" <alain@xxxxxxx>
Date: Thu, 4 Jan 2007 13:06:18 -0500

Yes indeed, and the following procedure can be used to provide a better
timing: this one will launch some.slow.procedure, launch something.else, and
then cancel something.else when some.slow.procedure has terminated.

to test
launch [some.slow.procedure]
launch [something.else]
waintuntil [done? [some.slow.procedure]]
cancel [somethign.else]
end

Alain

-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Daniel
Ajoy
Sent: January 4, 2007 12:50 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: question about TIMER and about Changing Mouse
shape


On 4 Jan 2007 at 2:56, zehava wizman wrote:

> 1.I know to use timer something like this procedure:
>
> to check resett t1, towards "t3 t1, forever [ setsh 7 fd slider1
> wait 1 setsh 8 fd slider1 wait 1 if touching? "t1 "t3 [ announce
> se timer / 10 "????? stopall ] ] end
>
> But If I reset the timer, and now want something to happen after 1
> minute for example, how can I do it?

Keep in mind that the following will not take 5 minutes,
"some.slow.procedure" might take a long time to complete:

repeat 5 [
some.slow.procedure
wait 3600
]

however

repeat 5 [
launch [some.slow.procedure]
wait 3600
]

does not work either in all cases because
"some.slow.procedure" might take more than 1 minute
to complete, if that's the case then you'll have
multiple "some.slow.procedure"s running in parallel

Daniel
OpenWorld Learning






  • Previous by thread: Re: question about TIMER and about Changing Mouse shape
  • Next by thread: Re: question about TIMER and about Changing Mouse shape

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008