VB.NET |
Move mouse cursor to specific location of external application like notepad
I am trying to fix the code below to move the mouse cursor to a specific location within a different window/application. The code below will move the mouse to the specified coordinates, but not of the notepad window. Can anyone tweak the code below to move the mouse to point 10,10 on the Notepad window? I want to point to specific coordinates relative to the active window, not the desktop.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

FroglegRank #1,020 · 1.9K reputationPosted Feb 5, 2011, 9:05 AM EST
Process.Start("Notepad.exe")
Notepad has focus