PDA

View Full Version : C++ Question


Hellmonkeys
2002-11-27, 11:34 AM
How can I make a C++ function that when called on will make a mouse click at X, Y corrdinents in a specific window?

WetWired
2002-11-27, 11:52 AM
Um, did you look it up in MSDN? Basicly, you get the hwnd of the window you want, then send it the proper mouse down and mouse up messages which contain your position data. This may not work, however, with Direct Input.

drivehappy
2002-11-28, 08:01 PM
you could also try some windows api function, which is handy in VB, not sure about c though

WetWired
2002-12-02, 07:57 AM
you could also try some windows api functionduh. That's what I was telling him how to do. How else would you do that kind of thing?

Randuin
2002-12-02, 09:11 AM
i avoid vb... cuz it sux

drivehappy
2002-12-05, 03:28 PM
i know, but its nifty for creating apps in no time at all.
1-800-WW-sue-myass