Thank you for your replies!!
I Think this is it!!

http://www.picbasic.co.uk/forum/show...highlight=idle