Depending on how your task breaks down, send...in would be one way to do this. You need to break the task into distinct pieces, each of which is small enough not to interfere with the user. The alternative is to insert

wait 0 milliseconds with messages

in your script. Again, this has to be interspersed enough that you pay enough attention to the user.

With either solution, you need to make sure that the user is protected from breaking things. Don't allow the user to (re)start the process repeatedly, for example.

On Friday, July 18, 2003, at 05:22 AM, Igor Couto wrote:

HI all!

I have a project in which there is a script that drives some drawing accompanied by an animation in a window (stack). The problem is that depending on the drawing/animation settings that the user applies, the entire process can take up to a couple of minutes. Even though I have provided a progress bar to give feedback to the user, I have found that while the drawing and animation are taking place, I can't do anything else! - Rev's menus don't respond until the script ends.

I would very much like to be able to carry on with other tasks, while the drawing and the animation keeps running in the background - is that at all possible?

I thought that if I used the 'send ... in time' command form, that it might solve the problem. So setup a button with the send command in a substack, trying to use that to trigger the animation. Nevertheless, even though the button's script is finished, once the drawing script starts in the other stack, I don't seem to be able to use any other interface item until it is finished! What am I missing?

I feel that somehow I should be able to run 2 or more scripts simultaneously - but can't seem to find a way to do that!

thanks in advance for any insights!

--
Igor de Oliveira Couto
----------------------------------
[EMAIL PROTECTED]
----------------------------------

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



regards,


Geoff Canyon
[EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to