"how does that exactly skip or stop anything using spacebar?"

If he uses an other function that calls media_stop, media_playing(yourhandle) becomes zero and the loop stops. wink