Ok. Then you'll need to find a way to read the textbox line by line and direct the code to a the relevant function or sub. So my code would become,
vb.net Code:
Sub MoveMouse(ByVal Command As String)
Dim parse As String = Command.Substring(10) 'removes mousemove
Dim xy() As String = Split(parse, " ") 'separates the two numbers
Try
Cursor.Position = New Point(CInt(xy(0)), CInt(xy(1)))
Catch ex As Exception
MsgBox("I'm sorry Dave, I can't do that!") 'GIGO failsafe
End Try
End Sub
And elsewhere in your code you'd have the equivalent of
vb.net Code:
If TextBox1.Lines(i).StartsWith("movemouse ") Then MoveMouse(TextBox1.Lines(i))