Re: [nbos] [AS] AlienAPI Feature Request
NBOS Support
Sat Oct 27th, 2007
At 07:54 AM 10/27/2007, you wrote:
>Thought about it, but DoEvents() doesn't exist in VBScript. :(
>On 10/26/07, Kevin Grimm
><<> > wrote:
>Try DoEvents()

There's a 'ProcessMessages()' function that might do the trick. Astro is
not multi-threaded, so the scripts run in the main thread. ProcessMessages
causes the app to divert for a moment and process the application's message
queue (key presses, menu selections, etc) to allow the gui to stay
responsive. You have to be careful not to do something in the program
that might cause the running script trouble - like deleting a body that the
script is expecting to be there.

Check in the sample plugins (or in that group of samples I posted to
nox). You can see it used in a few areas where there's a big, time
consuming loop.

Nbossoftware mailing list

Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources