<?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: Question: Move window to next monitor</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=eb80af33-9508-4104-a721-560388c41ccb" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=eb80af33-9508-4104-a721-560388c41ccb</link>
<description>DisplayFusion RSS: Question: Move window to next monitor</description>
<lastBuildDate>Mon, 20 Apr 2026 03:38:08 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=eb80af33-9508-4104-a721-560388c41ccb</generator>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#8</link>
<pubDate>Mon, 26 Jun 2017 14:05:16 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Of course it is. First, move to monitor and then define the bounds.
Oh. Where is my attentiveness?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Of course it is. First, move to monitor and then define the bounds.<br/>
Oh. Where is my attentiveness?  <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-sad-tear.light.svg" alt=":'(" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":'(" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#7</link>
<pubDate>Mon, 26 Jun 2017 13:52:01 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks, that works once I re-ordered the lines to select the monitor first before moving the mouse.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks, that works once I re-ordered the lines to select the monitor first before moving the mouse.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#6</link>
<pubDate>Mon, 26 Jun 2017 13:35:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[X and Y are the coordinates of the beginning of the window. i.e. the edge of the top and left side.
Now with the monitor selector.
Code
Copy
Select All
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
var monI...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
X and Y are the coordinates of the beginning of the window. i.e. the edge of the top and left side.<br/>
<br/>
Now with the monitor selector.<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da8f78a1071f4af1f1ace09163bb3" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da8f78a1071f4af1f1ace09163bb3Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da8f78a1071f4af1f1ace09163bb3Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        var monID = BFS.Monitor.ShowMonitorSelector();
        BFS.Window.MoveToMonitor(monID, windowHandle);
        var wBounds = BFS.Window.GetBounds(windowHandle);
        BFS.Input.SetMousePosition(wBounds.Width / 2 + wBounds.X, wBounds.Y + 15);
    }
}</pre><textarea id="code019da8f78a1071f4af1f1ace09163bb3" name="code019da8f78a1071f4af1f1ace09163bb3" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#5</link>
<pubDate>Mon, 26 Jun 2017 13:09:42 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[I should probably have created a new thread for this. Thanks for the tip attaching the script to a button. The script is close to what I'm after, except I want to choose the monitor to move the window to. Looking at a few of the downloadable scripts I've updated the script to:
Code
Copy
Select...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I should probably have created a new thread for this. Thanks for the tip attaching the script to a button. The script is close to what I'm after, except I want to choose the monitor to move the window to. Looking at a few of the downloadable scripts I've updated the script to:<br/>
<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da8f78a29706e9723a9c349aa9ff0" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da8f78a29706e9723a9c349aa9ff0Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da8f78a29706e9723a9c349aa9ff0Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">var wHandle = BFS.Window.GetFocusedWindow();
BFS.DisplayFusion.RunFunction("Move Window to Different Monitor (shows monitor selector)");
var wBounds = BFS.Window.GetBounds(wHandle);
BFS.Input.SetMousePosition(wBounds.X, wBounds.Y);</pre><textarea id="code019da8f78a29706e9723a9c349aa9ff0" name="code019da8f78a29706e9723a9c349aa9ff0" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
However, this does not move the mouse cursor at all once the window has moved to the monitor I select in the popup. The mouse remains at the position the monitor selector was at when I clicked it.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#4</link>
<pubDate>Mon, 26 Jun 2017 12:24:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[When you select a script from the function list, click "Toggle TitleBar Button", select the appropriate icon and apply. Now button will appear in the title bar and will be tied to the script. If you want to move mouse to the title rather than the center of the window, change Code
Copy
Select Al...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
When you select a script from the function list, click "Toggle TitleBar Button", select the appropriate icon and apply. Now button will appear in the title bar and will be tied to the script. If you want to move mouse to the title rather than the center of the window, change <div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da8f78a31766fbdb5ffec4228ec49" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da8f78a31766fbdb5ffec4228ec49Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da8f78a31766fbdb5ffec4228ec49Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SetMousePosition(wBounds.Width/2 + wBounds.X, wBounds.Height/2 + wBounds.Y);</pre><textarea id="code019da8f78a31766fbdb5ffec4228ec49" name="code019da8f78a31766fbdb5ffec4228ec49" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> to <div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da8f78a33773192a981a7a1f9b030" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da8f78a33773192a981a7a1f9b030Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da8f78a33773192a981a7a1f9b030Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SetMousePosition(wBounds.Width/2 + wBounds.X, wBounds.Y + 15);</pre><textarea id="code019da8f78a33773192a981a7a1f9b030" name="code019da8f78a33773192a981a7a1f9b030" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#3</link>
<pubDate>Mon, 26 Jun 2017 11:20:42 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[How could I go about moving the mouse automatically if clicking a titlebar button to move the window to a different monitor? I cannot see how to attach this C# script to the existing button.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
How could I go about moving the mouse automatically if clicking a titlebar button to move the window to a different monitor? I cannot see how to attach this C# script to the existing button.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#2</link>
<pubDate>Sun, 25 Jun 2017 03:26:08 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[In "Functions" select "Add scripted"
Past this code to editor
Set name of script
Set "Key Combination" to run
Use it
Code
Copy
Select All
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Get focused wind...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<ul class="ListBullet">
<li>In "Functions" select "Add scripted"</li>
<li>Past this code to editor</li>
<li>Set name of script</li>
<li>Set "Key Combination" to run</li>
<li>Use it  <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-laugh-beam.light.svg" alt=":laugh:" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":laugh:" HelpButtonDataAlign="BelowMiddle" /></li></ul>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da8f78a4b77a4af37012acaad995f" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da8f78a4b77a4af37012acaad995fJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da8f78a4b77a4af37012acaad995fJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // Get focused window handle
        var wHandle = BFS.Window.GetFocusedWindow();
        
        // Move window to next monitor
        BFS.Window.MoveToNextMonitor(wHandle);
        
        // Get window bounds
        var wBounds = BFS.Window.GetBounds(wHandle);
        
        // Move mouse to center of window
        BFS.Input.SetMousePosition(wBounds.Width/2 + wBounds.X, wBounds.Height/2 + wBounds.Y);
    }
}</pre><textarea id="code019da8f78a4b77a4af37012acaad995f" name="code019da8f78a4b77a4af37012acaad995f" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>Question: Move window to next monitor</title>
<link>https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb</link>
<pubDate>Sun, 25 Jun 2017 00:12:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/question-move-window-to-next-monitor/?ID=eb80af33-9508-4104-a721-560388c41ccb</guid>
<category>DisplayFusion</category>
<description><![CDATA[I'm using a keyboard shortcut to move the active window to the next monitor.
I was wondering if it's  possible to also move the mouse cursor to the active window new location ?
Thanks]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm using a keyboard shortcut to move the active window to the next monitor.<br/>
I was wondering if it's  possible to also move the mouse cursor to the active window new location ?<br/>
<br/>
Thanks
</div>
]]></content:encoded>
</item>
</channel>
</rss>