Anyone know the best way to make time lapse between mouse events when using the SendInput() function along with MOUSEEVENT bitflags?
Printable View
Anyone know the best way to make time lapse between mouse events when using the SendInput() function along with MOUSEEVENT bitflags?
Use a timer message to send the input. Will repeat until you kill it. Not great accuracy (+/ 5ms) as low in priority. If you need greater resolution look at GetPerformanceTimer()
WM_TIMER
SetTimer()
Works good, thanks.