mIRC Home    About    Download    Register    News    Help

Print Thread
#118902 30/04/05 12:24 AM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
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...

#118903 30/04/05 12:40 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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.


New username: hixxy

Link Copied to Clipboard