Gaboros
Gaboros

Reputation: 191

c++ win32 SendInput()

How can I simulate key press with SendInput()?

I want to make it to simulate for example in a notepad to press shift+q. So a Q would appear in the notepad if I run my program.

Upvotes: 1

Views: 779

Answers (1)

MSalters
MSalters

Reputation: 179819

You need 4 inputs: shift down, q down, q up, shift up. Therefore, use a INPUT[4].

Upvotes: 2

Related Questions