Hi,
I'm getting used to VB now, but still do have the odd problem that I can't figure out. I need to know how to move a mouse cursor remotely over a UDP connection. I have this so far:

On the first form: 'in a timer function...

Dim Point as POINTAPI
Dim Crp as String
GetCursorPos Point
Text1.Text = Point.x ' Just to see the X-Y
Text2.Text = Point.y
Crp = Text1.Text +", "+Text2.Text
Winsock1.SendData Crp


An on the Second form:


Private Sub Winsock1_DataArrival()
Dim strData As String
Winsock1.GetData strData
txtOutput.Text = strData ' To make sure the X-Y made it
SetCursorPos strData
End Sub



But I get an error that the SetCursorPos "Argument not optional".

I would guess that I would have to somehow Use the Left and Right functions to extract the appropriate #'s ?

Or is there an easier way?

Any help is very much appreciated!!

Thanx a million,

Scott