Ryuu
Ryuu

Reputation: 817

How the use the 'time' parameter in INPUT when using ::SendInput

The Windows ::SendInput function receives an INPUT object, which has a 'time' parameter. I could not find any examples on the net that utilizes this parameter. The MSDN documentation isn't helpful either.

I'm actually trying to animate a mouse movement across the screen, and I think this parameter can achieve that.

Anybody knows how to use it?

Upvotes: 0

Views: 314

Answers (1)

Jonathan Potter
Jonathan Potter

Reputation: 37132

It equates to the time the message is sent (as reported by GetTickCount()), and is equivalent to the value that the GetMessageTime() function retrieves when processing messages.

Upvotes: 1

Related Questions