The MASM Forum

Specialised Projects => PowerBASIC => Topic started by: hutch-- on August 08, 2021, 02:02:57 PM

Title: A one shot timer.
Post by: hutch-- on August 08, 2021, 02:02:57 PM
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.
Title: Re: A one shot timer.
Post by: stevenxie on August 08, 2021, 06:17:36 PM
Hi,Hutch! you are very good! :thumbsup: :thumbsup:
Title: Re: A one shot timer.
Post by: hutch-- on August 16, 2021, 03:02:26 PM
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 (http://masm32.com/board/index.php?topic=9500.0)
Title: Re: A one shot timer.
Post by: stevenxie on August 16, 2021, 05:47:24 PM
hi,Hutch! You are very good!