Tray with a pause 10 after mainloop.

mainloop:
Pause 10
If Open = 0 Then ' If Open button pressed...

Cheers

Al.