
Moving Mouse Cursor to position and click
Here's a way to move the pointer in code:
'-- Begin sample code
Dim pc As New System.Drawing.PointConverter()
Dim pt As New System.Drawing.Point()
pt = pc.ConvertFromString("240,240")
Windows.Forms.Cursor.Position = pt
'-- End sample code
However, I can't find a way to cause a mouse click in code; are you sure
there's no way to just call the click event handler of whatever it is you
want the mouse to click on?
Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.