mIRC Homepage
Posted By: Scratch mIRC's /timer command - 30/04/05 12:24 AM
How is the /timer command in mIRC implemented? Does it use a Windows API call, or does it use a low level routine? I'm trying to figure out a way to make a function in C similar to the /timer command...
Posted By: tidy_trax Re: mIRC's /timer command - 30/04/05 12:40 AM
Use the timeSetEvent (/timer) and timeKillEvent (/timer off) API functions.

You also need a timeproc function (Much like window or thread procedures) for the timer to call when it fires. Look on MSDN for more info.
© mIRC Discussion Forums