Recently some of the folks at the PowerBASIC forum were addressing a timer issue that was originally asked as a question. The attached example is a one shot timer that uses a thread and can be set to any millisecond duration. It is normal Windows API code written in PBWIN10 and it should be easy enough to use the example for setting a duration that responds with a normal WM_COMMAND message on completion of the duration.