Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   C++ Question (http://zelaron.com/forum/showthread.php?t=10859)

Hellmonkeys 2002-11-27 11:34 AM

C++ Question
 
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

Quote:

you could also try some windows api function
duh. 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


All times are GMT -6. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.