title: Moving the mouse in other application on C#
body: <p>I'm trying to make a program that basically executes a mouse macro on other windows/apps in a given interval of time.</p>
  
  <p>I've already managed create the timer, mapping and saving the 3 positions on screen that I need (using <code>[DllImport("User32.Dll")]</code> and <code>GetCursorPos</code>/<code>SetCursorPos</code>/<code>mouse_event</code> to do the left click) and even manage to do the mouse move on screen using <code>LinearSmoothMove</code>. </p>
  
  <p>The problem is when I execute the function the mouse moves until it reaches the side of the window of this other app and then it "stops" (actually it looks like it's moving under the window). However, it works with other things like opening Notepad and going between the lines.</p>