<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set mouse position in Stereo Map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-mouse-position-in-stereo-map/m-p/1334086#M10499</link>
    <description>&lt;P&gt;When the regular map is active, I use the following code to make the mouse jump to a specified position:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueuedTask.Run(() =&amp;gt;
{
  MapPoint mapPoint = MapPointBuilderEx.CreateMapPoint(x, y, spatialRef);
  System.Windows.Point cursorPoint = MapView.Active.MapToScreen(mapPoint);
  System.Windows.Forms.Cursor cursor = new Cursor(Cursor.Current.Handle);
  Cursor.Position = new System.Drawing.Point((int)cursorPoint.X, (int)cursorPoint.Y);
});&lt;/LI-CODE&gt;&lt;P&gt;When the Stereo Map is active and I use the same code as above, I get three problems:&lt;/P&gt;&lt;P&gt;1. I cannot specify the z-value&lt;/P&gt;&lt;P&gt;2. The mouse doesn't jump to the correct position on the Stereo Map&lt;/P&gt;&lt;P&gt;3. The position where the mouse jumps to is different each time I change the z-value of the mouse&lt;/P&gt;&lt;P&gt;Is there another way to set the mouse position in the StereoMap in the Pro SDK? I haven't found anything.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 11:40:18 GMT</pubDate>
    <dc:creator>BarbaraSchneider2</dc:creator>
    <dc:date>2023-10-02T11:40:18Z</dc:date>
    <item>
      <title>How to set mouse position in Stereo Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-mouse-position-in-stereo-map/m-p/1334086#M10499</link>
      <description>&lt;P&gt;When the regular map is active, I use the following code to make the mouse jump to a specified position:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueuedTask.Run(() =&amp;gt;
{
  MapPoint mapPoint = MapPointBuilderEx.CreateMapPoint(x, y, spatialRef);
  System.Windows.Point cursorPoint = MapView.Active.MapToScreen(mapPoint);
  System.Windows.Forms.Cursor cursor = new Cursor(Cursor.Current.Handle);
  Cursor.Position = new System.Drawing.Point((int)cursorPoint.X, (int)cursorPoint.Y);
});&lt;/LI-CODE&gt;&lt;P&gt;When the Stereo Map is active and I use the same code as above, I get three problems:&lt;/P&gt;&lt;P&gt;1. I cannot specify the z-value&lt;/P&gt;&lt;P&gt;2. The mouse doesn't jump to the correct position on the Stereo Map&lt;/P&gt;&lt;P&gt;3. The position where the mouse jumps to is different each time I change the z-value of the mouse&lt;/P&gt;&lt;P&gt;Is there another way to set the mouse position in the StereoMap in the Pro SDK? I haven't found anything.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 11:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-mouse-position-in-stereo-map/m-p/1334086#M10499</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2023-10-02T11:40:18Z</dc:date>
    </item>
  </channel>
</rss>

