Code:
<Return: MarshalAs(UnmanagedType.Bool)> _
<DllImport("user32.dll", SetLastError := True)> _
Private Shared Function PostMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean
End Function
Public Shared Sub MoveMouse(ByVal hWnd As IntPtr, ByVal x As Integer, ByVal y As Integer)
'const uint WM_MOUSEMOVE = 0x0200;
PostMessage(hWnd, &H200, IntPtr.Zero, DirectCast((y * &H10000 + x), IntPtr))
End Sub
Also, you'll want to play around with whether it's full screen coords, or WoW screen coords.