causing a mouse drag programaticly
-
does anyone have an idea how I can cause a mouse drag programaticly. What api function could do this? Any help would be most appreciated. Thank you, SAK
I think SetCursorPos will do the trick. You can find more information here: MSDN Library Platform SDK: Windows User Interface SetCursorPos Andres Manggini. Buenos Aires - Argentina.
-
I think SetCursorPos will do the trick. You can find more information here: MSDN Library Platform SDK: Windows User Interface SetCursorPos Andres Manggini. Buenos Aires - Argentina.
-
I am using the SetCursorPos but this only moves the cursor, but what I need is to do a drag operation. So I need to cause a click and have the mouse button pressed until the drag operation is complete. How is it possible to keep the mouse button down. Thanks
You are right.. I misread your message, thought you wanted to just move the pointer. I would try sending a message to the window directly, you should obtain the Window Handle and then send a couple of message, maybe a WM_LBUTTONDOWN and a WM_MOUSEMOVE, I'm not sure how this is going to interact with the messages that the actual mouse is generating, perhaps SetCapture can help here.. Andres. Buenos Aires - Argentina.