<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Detecting &quot;second&quot; monitor ID</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=42f94fc1-6dc4-4788-b0af-caff08af8463" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=42f94fc1-6dc4-4788-b0af-caff08af8463</link>
<description>DisplayFusion RSS: Detecting &quot;second&quot; monitor ID</description>
<lastBuildDate>Sat, 20 Jun 2026 04:32:13 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=42f94fc1-6dc4-4788-b0af-caff08af8463</generator>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#16</link>
<pubDate>Tue, 15 Dec 2020 09:07:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#16</guid>
<category>DisplayFusion</category>
<description><![CDATA[Works great!
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Works great!<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#15</link>
<pubDate>Wed, 09 Dec 2020 20:02:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#15</guid>
<category>DisplayFusion</category>
<description><![CDATA[Correct, all X,Y values are relative to the top-left corner of the primary monitor.
On line 42 where you're calculating y, you should do this:
int y = targetMonitorBounds.Y + topDistance;
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Correct, all X,Y values are relative to the top-left corner of the primary monitor.<br/>
<br/>
On line 42 where you're calculating y, you should do this:<br/>
<div class="Inline"><pre>int y = targetMonitorBounds.Y + topDistance;</pre></div><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#14</link>
<pubDate>Mon, 07 Dec 2020 10:35:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#14</guid>
<category>DisplayFusion</category>
<description><![CDATA[Uhmmm, it seems that "top position" is refered to the main screen height that is bigger then the destination monitor ones. Could be this?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Uhmmm, it seems that "top position" is refered to the main screen height that is bigger then the destination monitor ones. Could be this?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#13</link>
<pubDate>Mon, 07 Dec 2020 10:22:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#13</guid>
<category>DisplayFusion</category>
<description><![CDATA[Keith I've an issue within this script using your seggested function (that works great). I've no idea why now it doesn't work.
When my second screen is smaller than main one (fullHD instead of 2K), the y positioning is wrong (see attachments).
The second screen (smaller) is using a different Wi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Keith I've an issue within this script using your seggested function (that works great). I've no idea why now it doesn't work.<br/>
<br/>
When my second screen is smaller than main one (fullHD instead of 2K), the y positioning is wrong (see attachments).<br/>
<br/>
The second screen (smaller) is using a different Windows scaling setting (120% instead of 100% of the main one), but I've tested with no luck.<br/>
<br/>
Can you please help me?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#12</link>
<pubDate>Thu, 02 Jul 2020 07:55:19 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#12</guid>
<category>DisplayFusion</category>
<description><![CDATA[Works great!
Cheers!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Works great!<br/>
<br/>
Cheers!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#11</link>
<pubDate>Fri, 19 Jun 2020 19:28:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#11</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sounds great, thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sounds great, thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#10</link>
<pubDate>Fri, 19 Jun 2020 05:52:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#10</guid>
<category>DisplayFusion</category>
<description><![CDATA[Just to let you know that I'm starting testing today.
Thank you very much for your great support, as usual.
I'll back to you soon for a final feedback.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Just to let you know that I'm starting testing today.<br/>
<br/>
Thank you very much for your great support, as usual. <br/>
<br/>
I'll back to you soon for a final feedback.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#9</link>
<pubDate>Tue, 02 Jun 2020 20:39:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#9</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, try this one out! You'll need to import it on the Settings  Functions tab and set the name of your Custom Function at the top of the script. After that, apply the settings, then try adding it to your Trigger rule, hopefully it works for you!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, try this one out! You'll need to import it on the Settings > Functions tab and set the name of your Custom Function at the top of the script. After that, apply the settings, then try adding it to your Trigger rule, hopefully it works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#8</link>
<pubDate>Tue, 02 Jun 2020 17:14:54 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sure, thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sure, thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#7</link>
<pubDate>Mon, 01 Jun 2020 19:31:01 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, this would be possible with a Scripted Function. What we could do is write a Scripted Function that moves the Window to the "second" monitor, then runs your Custom Function for the size. If you think that would work, please let me know and I'll send over the Scripted Function.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, this would be possible with a Scripted Function. What we could do is write a Scripted Function that moves the Window to the "second" monitor, then runs your Custom Function for the size. If you think that would work, please let me know and I'll send over the Scripted Function.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#6</link>
<pubDate>Fri, 29 May 2020 07:34:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Seems not.
Only laptop screen &gt; main ID = 1
Docking with 2 ext screens and no laptop screen (lid closed) &gt; main ID = 1 (left one)
1 ext screen plus laptop screen &gt; main ID = 2 (ext one), laptop on left
Ideally, I need to determine the first screen that is not the main Windows one.
I...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Seems not.<br/>
<br/>
Only laptop screen &gt; main ID = 1<br/>
Docking with 2 ext screens and no laptop screen (lid closed) &gt; main ID = 1 (left one)<br/>
1 ext screen plus laptop screen &gt; main ID = 2 (ext one), laptop on left<br/>
<br/>
Ideally, I need to determine the first screen that is not the main Windows one.<br/>
<br/>
I suppose that can be helpful for some other folks here.<br/>
<br/>
Thanks.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#5</link>
<pubDate>Thu, 21 May 2020 11:03:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Need to check, I'll get back to you in few days.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Need to check, I'll get back to you in few days.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#4</link>
<pubDate>Wed, 20 May 2020 20:49:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, interesting. Is the second monitor always a higher ID than the primary?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, interesting. Is the second monitor always a higher ID than the primary?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#3</link>
<pubDate>Sat, 16 May 2020 17:21:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[No, because when on docking stations, I tipically don't use the laptop monitor (the lid is closed).
Examples:
- laptop only (obvious one-screen setup)
- laptop screen (sometimes on left, sometimes on right) + 1 external screen (Windows main)
- 2 externals (on the left is the Windows main) and...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No, because when on docking stations, I tipically don't use the laptop monitor (the lid is closed).<br/>
<br/>
Examples:<br/>
- laptop only (obvious one-screen setup)<br/>
- laptop screen (sometimes on left, sometimes on right) + 1 external screen (Windows main)<br/>
- 2 externals (on the left is the Windows main) and no laptop screen (lid closed)<br/>
<br/>
As you can see, the "first second" screen ID is what I looking for (but tell me if I'm wrong).<br/>
<br/>
Many thanks.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#2</link>
<pubDate>Fri, 15 May 2020 21:33:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Is the laptop always monitor ID 1 in your setups?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Is the laptop always monitor ID 1 in your setups?
</div>
]]></content:encoded>
</item>
<item>
<title>Detecting &quot;second&quot; monitor ID</title>
<link>https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463</link>
<pubDate>Tue, 12 May 2020 07:34:19 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/detecting-second-monitor-id/?ID=42f94fc1-6dc4-4788-b0af-caff08af8463</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi guys,
I have a bunch of triggers that I need to point to "second" screen I attached, but sometimes this is on left and other times on right. Using a laptop on docking stations and using it with external direct connected screens too, I need my triggers to point to which monitor is not the Wind...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi guys,<br/>
<br/>
I have a bunch of triggers that I need to point to "second" screen I attached, but sometimes this is on left and other times on right. Using a laptop on docking stations and using it with external direct connected screens too, I need my triggers to point to which monitor is not the Windows main one. <br/>
<br/>
With MoveToNext or MoveToPrevious I need to define the exact position, that for me can change.<br/>
<br/>
How can I build a function to detect the ID of which I consider not the main Windows screen at the moment? I always use two screens at maximum, so I could be satifisfied using the first low value of an array (for example).<br/>
<br/>
Thanks.
</div>
]]></content:encoded>
</item>
</channel>
</rss>