I hope the problems with the "sleep" function are gone, after my bug fix.
The issue with the locked file should be resolved now, with using "Soundplay,...,wait".
I've added the "repeat last sound" function in the tray menu, and also made "stop sound" and "force next". "force next" will just play the next sound without waiting, but won't do anything while in "sleep mode".
Default tray action (double-click) can be configured in the ini file.
So, that's it with the script. Unless you find a serious bug, I won't touch it again. :-)