<?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: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=8cb0ea5a-bced-4060-a326-9890d116529b" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=8cb0ea5a-bced-4060-a326-9890d116529b</link>
<description>DisplayFusion RSS: Function / Macro (not sure how to implement) Open program and move to location on monitor</description>
<lastBuildDate>Thu, 28 May 2026 03:00:31 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=8cb0ea5a-bced-4060-a326-9890d116529b</generator>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#11</link>
<pubDate>Mon, 08 Dec 2014 21:17:54 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#11</guid>
<category>DisplayFusion</category>
<description><![CDATA[No problem, glad to hear it!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No problem, glad to hear it!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#10</link>
<pubDate>Fri, 05 Dec 2014 01:17:19 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#10</guid>
<category>DisplayFusion</category>
<description><![CDATA[The mono spaced function works great! thanks for getting this working!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The mono spaced function works great! thanks for getting this working!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#9</link>
<pubDate>Mon, 01 Dec 2014 19:38:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#9</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, cool! For the next beta, we're adding a ShowMessageInfoMonospaced function that should hopefully do the trick]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, cool! For the next beta, we're adding a ShowMessageInfoMonospaced function that should hopefully do the trick <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.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: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#8</link>
<pubDate>Thu, 27 Nov 2014 18:36:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[mainly the padding I rewrote some of my code to include a formatted string. so you can see the problem more clearly.
Code
Copy
Select All
using System;
using System.Drawing;
using System.Collections.Generic;
public static class DisplayFusionFunction
{
public static void Run(IntPtr window...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
mainly the padding I rewrote some of my code to include a formatted string. so you can see the problem more clearly. <br/>
<br/>
<div 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="#code019e6c86c3f975feb3683befa9eeb945" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e6c86c3f975feb3683befa9eeb945Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019e6c86c3f975feb3683befa9eeb945Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Collections.Generic;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
IntPtr[] handles = BFS.Window.GetVisibleWindowHandles();

int len = handles.Length;
SortedDictionary&lt;int, string&gt; positions = new SortedDictionary&lt;int, string&gt;();

string formatted = "";

for (int i = 0; i &lt; len; i++)
{
positions.Add((int)handles&#91i&#93, BFS.Window.GetBounds(handles&#91i&#93).ToString());
}

foreach (KeyValuePair&lt;int, string&gt; key in positions)
{
formatted += string.Format("ID: {0,-15} Location: {1,50} {2} \r\n", key.Key, key.Value,
BFS.Window.GetText((IntPtr)key.Key)); 
}

BFS.Dialog.ShowMessageInfo(formatted);
}
}</pre><textarea id="code019e6c86c3f975feb3683befa9eeb945" name="code019e6c86c3f975feb3683befa9eeb945" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
When you run the output my goal is to have each section line-up in the output.<br/>
<br/>
FYI I just started to learn C# about a week ago coming from a c++ background so its very possible this is my problem.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#7</link>
<pubDate>Thu, 27 Nov 2014 14:18:23 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[What issues were you running into with format.string?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
What issues were you running into with format.string?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#6</link>
<pubDate>Wed, 26 Nov 2014 04:47:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Appreciate the hard work!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Appreciate the hard work!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#5</link>
<pubDate>Wed, 26 Nov 2014 03:20:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Well I have been gathering opened window information with this:
Code
Copy
Select All
using System;
using System.Drawing;
using System.Collections.Generic;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
IntPtr[] handles = BFS.Window.GetVisibleW...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Well I have been gathering opened window information with this:<br/>
<br/>
<div 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="#code019e6c86c40c77df9495e159638f673e" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e6c86c40c77df9495e159638f673eJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019e6c86c40c77df9495e159638f673eJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Collections.Generic;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
IntPtr[] handles = BFS.Window.GetVisibleWindowHandles();

int len = handles.Length;
SortedDictionary&lt;int, string&gt; positions = new SortedDictionary&lt;int, string&gt;();
string output = "";

for (int i = 0; i &lt; len; i++)
{
positions.Add((int)handles&#91i&#93, BFS.Window.GetBounds(handles&#91i&#93.ToString());
}

foreach (KeyValuePair&lt;int, string&gt; key in positions)
{
output += "ID: " + key.Key + " Location: " + key.Value + " "
+ BFS.Window.GetText((IntPtr)key.Key) + "\r\n";
}

BFS.Dialog.ShowMessageInfo(output);
}
}</pre><textarea id="code019e6c86c40c77df9495e159638f673e" name="code019e6c86c40c77df9495e159638f673e" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
Which is great.<br/>
(side note here. the format.string function does not work very well with BFS.Dialog.ShowMessageInfo.)<br/>
<br/>
And this is what I'm using to move the windows to its desired location. I haven't had time to try anything for child windows yet.<br/>
<br/>
<div 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="#code019e6c86c40e76eaa34e0772cca1570d" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e6c86c40e76eaa34e0772cca1570dJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019e6c86c40e76eaa34e0772cca1570dJs" 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)
{
if (BFS.Application.IsAppRunningByFile(@"C:\Program Files (x86)\Steam\Steam.exe"))
{
IntPtr steam = BFS.Application.GetMainWindowByAppID(BFS.Application.GetAppIDByFile(@"C:\Program Files (x86)\Steam\Steam.exe"));
BFS.Window.SetSizeAndLocation(steam,1,1,1000,663);
}
}
}</pre><textarea id="code019e6c86c40e76eaa34e0772cca1570d" name="code019e6c86c40e76eaa34e0772cca1570d" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
edit: trimmed the code of unneeded comments.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#4</link>
<pubDate>Tue, 25 Nov 2014 16:04:29 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[@Jay: We need to make a small change to the scripting functions for Beta 10, and then I'll have a script for you
@Solaris: Could you attach your existing script, and let me know what issues you're having with it? We'll check it out and see if there's a way to improve it.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
@Jay: We need to make a small change to the scripting functions for Beta 10, and then I'll have a script for you <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
@Solaris: Could you attach your existing script, and let me know what issues you're having with it? We'll check it out and see if there's a way to improve it.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#3</link>
<pubDate>Tue, 25 Nov 2014 04:29:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I've been trying to do the same thing for a couple of days as well through scripted functions.
It's safe to say I'm still learning, but so far I can't seem to get it working with child windows. Specifically the steam friends list and chat box. If I make any breakthroughs I'll post back here.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've been trying to do the same thing for a couple of days as well through scripted functions. <br/>
<br/>
It's safe to say I'm still learning, but so far I can't seem to get it working with child windows. Specifically the steam friends list and chat box. If I make any breakthroughs I'll post back here.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#2</link>
<pubDate>Tue, 25 Nov 2014 03:04:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[We should actually be able to do this with the Scripted Functions in the DisplayFusion 7.0 beta. I'll see if I can whip one up for you tomorrow]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We should actually be able to do this with the Scripted Functions in the DisplayFusion 7.0 beta. I'll see if I can whip one up for you tomorrow <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.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>Function / Macro (not sure how to implement) Open program and move to location on monitor</title>
<link>https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b</link>
<pubDate>Mon, 24 Nov 2014 03:14:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-macro-not-sure-how-to-implement-open-program-and-move-to-location-on-monitor/?ID=8cb0ea5a-bced-4060-a326-9890d116529b</guid>
<category>DisplayFusion</category>
<description><![CDATA[I thought I did the right thing, I made a function for stickey notes to move it to my second monitor near the top of the screen.
Steps: Window Location
Enable
Add
Select Application ---&gt;C:\Windows\System32\StikyNot.exe
Use current monitor (4 30" 1600p screenS)
Window Size ---&gt; Run Sel...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I thought I did the right thing, I made a function for stickey notes to move it to my second monitor near the top of the screen.<br/>
<br/>
Steps: Window Location<br/>
Enable<br/>
Add<br/>
Select Application ---&gt;C:\Windows\System32\StikyNot.exe<br/>
Use current monitor (4 30" 1600p screenS)<br/>
Window Size ---&gt; Run Selected function on the Window<br/>
Location ---&gt; All Windows<br/>
Function --&gt; Edit Function<br/>
Function Action: Manage Window<br/>
<br/>
Custom Function Actions<br/>
Move window to specified location Position X 2560 Positiony 150<br/>
Dont change width (BTW if you use the target to link a location it just fills in width/height change<br/>
<br/>
When this is done when I open stickey notes it goes to the top far right of the screen. The only way to get it to work is I make this function a hot key. My goal though is to:<br/>
<br/>
Make a Hotkey and for this one hotkey to open the program, and move the window. I cant find anything on macros can someone help me figure out how to do this?
</div>
]]></content:encoded>
</item>
</channel>
</rss>