02-05-2007, 07:37 AM
Quote:I think the second would use too much CPU time.
No. GetMessage waits until a message arrives and does not use much CPU time. RegisterHotKey is preferred method of implementing triggers in exe because does not need hooks.