Henning wrote:@EasyCoder
If your app is supposed to respond, never use Sleep. Sleep does exactly what it says, puts your app to sleep. Use DoEvents in tight loops to allow other parts of the app to do anything.
Did you try the Event? Sub xx_OnFinished ().
/Henning
The problem isn't checking if the file has finished playing. If you want to restart playback it seems to want a certain amount of time to start to play. Adding any command after the play() function will cause it stop working unless you sleep first.
xx.play(file)
sleep 1
command
Without the sleep above the file wont play. It's possible it only requires 10mS to start playback, but I cannot tell because the minimum delay time with the sleep function is 1 second. I really don't know why you can't set the delay in mS for the sleep function.
berndnoetscher, can I load a Kbasic project into Q7basic without changes ? It took me long time to transfer a VB6 project to Kbasic and I don't want to have to go through that pain again.
I was going to buy a license key, but until I am sure I can create the app that I want I am still holding off.
Regards,
EasyCoder.