T Terry Redmond Jan 21, 2004 #1 Is there a way to perform a mouse click in C#, but without touching the mouse....if you know what i mean?
Is there a way to perform a mouse click in C#, but without touching the mouse....if you know what i mean?
G Glen Jones MCSD Jan 21, 2004 #2 Terry Not sure if we know what you mean. Do you mean post a Mouse click message to the Windows Message pump? Do you mean call a Click event on a WinForm/WebForm? Let use know "What" you are trying to accomplish and the group will try to help.
Terry Not sure if we know what you mean. Do you mean post a Mouse click message to the Windows Message pump? Do you mean call a Click event on a WinForm/WebForm? Let use know "What" you are trying to accomplish and the group will try to help.
T Terry Redmond Jan 21, 2004 #3 i need a bit of code to make the computer think i have clicked the left mouse button. i.e If <condition> then <click left mouse button> If this is possible is it possible to hold the left mouse button down? ie If <condition> then Do <hold left mouse button down> until <condition> <release mouse button>
i need a bit of code to make the computer think i have clicked the left mouse button. i.e If <condition> then <click left mouse button> If this is possible is it possible to hold the left mouse button down? ie If <condition> then Do <hold left mouse button down> until <condition> <release mouse button>
G Glen Jones MCSD Jan 21, 2004 #5 Terry, Ok, You can send quite a few mouse event messages to windows. To see a list lookup the following MSDN Platform SDK article "Mouse Input Messages". I would suggest the WM_LBUTTONUP message since it is only recieved when a the mouse button is let go on a control. To send this message call the User32.dll api function PostMessage(); Hope this helps.
Terry, Ok, You can send quite a few mouse event messages to windows. To see a list lookup the following MSDN Platform SDK article "Mouse Input Messages". I would suggest the WM_LBUTTONUP message since it is only recieved when a the mouse button is let go on a control. To send this message call the User32.dll api function PostMessage(); Hope this helps.