got that part to work
thanks
but now I'm want to move cursor to a special position. I have
Code:
Declare Function mouse_event Lib "user32.dll" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
mouse_event(MOUSEEVENTF_MOVE, txtX.Text, txtY.Text, 0, 0)
when running I get MarshalDirectiveException was unhandled :s