Eventloop and code running simultaneously?
BlitzPlus Forums/BlitzPlus Programming/Eventloop and code running simultaneously?
| ||
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 |
| ||
Use a bigger number than 0 (even 5 will do it) because it will use too much CPU with no delay. |
| ||
Thanks, i figured out it's measured in milliseconds |