954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

using mouse in C++

I am able to make a mouse... the show function and hide functions are working.. but i am not able to implement the left_button down properly... not even the right button down function.... is it like the left button down n click r equivalent.... can neone help me out with this function... pls...

mukulbudania
Newbie Poster
4 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

This should work for a left click:

mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

Hi, can you post some code how to move the mouse etc :) just i would like to experiment making programs like that, many thanks.

Black Magic
Junior Poster
178 posts since Apr 2008
Reputation Points: 25
Solved Threads: 4
 

SetCursorPos(x,y) // in windows library

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

thanks, is there a website where i can get all things? like move, click,wait etc :)

Black Magic
Junior Poster
178 posts since Apr 2008
Reputation Points: 25
Solved Threads: 4
 

I just use google to search for how to use the parameters in the functions that I find in the windows library.

William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
 

google sites dont usually help me, a website would help

Black Magic
Junior Poster
178 posts since Apr 2008
Reputation Points: 25
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You