Eventloop and code running simultaneously?

BlitzPlus Forums/BlitzPlus Programming/Eventloop and code running simultaneously?

Sub_Zero(Posted 2006) [#1]
Is it possible to have code running constantly while the gui app is in an event loop?

Let's say I need a gui app that needs to check for new file uploads in a directory, regardless if there are events happening. Is it possible with blitzplus?


EDIT: Sorry, I should have checked the documentation :)
a WaitEvent(0) instead of WaitEvent() should do the trick.

You can move this post to /dev/null


Andres(Posted 2006) [#2]
Use a bigger number than 0 (even 5 will do it) because it will use too much CPU with no delay.


Sub_Zero(Posted 2006) [#3]
Thanks, i figured out it's measured in milliseconds