News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

A one shot timer.

Started by hutch--, August 08, 2021, 02:02:57 PM

Previous topic - Next topic

hutch--

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.

stevenxie

Hi,Hutch! you are very good! :thumbsup: :thumbsup:

hutch--

For anyone who is interested in how its done in 64 bit MASM, the example is here.

http://masm32.com/board/index.php?topic=9500.0

stevenxie

hi,Hutch! You are very good!