Skip to main content
gamedev.net
🔒 Locked

simulating mouse clicks

Started by mrmage 2 replies 700+ views
Original Post
mrmage
mrmage
hi im wanting to write a program to simulate mouse clicks using c++ windows platform, is there something in the win32 api i can use? like am i able to send simulated mouse clicks to another programs wndproc? can u generate messages? or can only windows? or is there another way around this problem.
SiCrane
SiCrane
Did you try SendInput()?
mrmage
mrmage
ok thanks! seems sort of easy enough i make a MOUSEINPUT object which i place into a INPUT object which i send using SendInput() cool ill try it

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.