Anyone know the best way to make time lapse between mouse events when using the SendInput() function along with MOUSEEVENT bitflags?
Anyone know the best way to make time lapse between mouse events when using the SendInput() function along with MOUSEEVENT bitflags?
Last edited by Mr Silvertongue; 04-02-2004 at 12:41 AM.
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()
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Works good, thanks.