<?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, 17 Sep 2026 09:00:51 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=":)" />
</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;&#xA;using System.Drawing;&#xA;using System.Collections.Generic;&#xA;&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static vo...]]></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="#code01a0ae98e7d472e3948dc4724b2e1f3a" 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('code01a0ae98e7d472e3948dc4724b2e1f3aJs'); 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="code01a0ae98e7d472e3948dc4724b2e1f3aJs" name="code01a0ae98e7d472e3948dc4724b2e1f3aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Collections.Generic;&#xA;&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;IntPtr[] handles = BFS.Window.GetVisibleWindowHandles();&#xA;&#xA;int len = handles.Length;&#xA;SortedDictionary&amp;lt;int, string&amp;gt; positions = new SortedDictionary&amp;lt;int, string&amp;gt;();&#xA;&#xA;string formatted = &quot;&quot;;&#xA;&#xA;for (int i = 0; i &amp;lt; len; i&#x2B;&#x2B;)&#xA;{&#xA;positions.Add((int)handles&amp;#91i&amp;#93, BFS.Window.GetBounds(handles&amp;#91i&amp;#93).ToString());&#xA;}&#xA;&#xA;foreach (KeyValuePair&amp;lt;int, string&amp;gt; key in positions)&#xA;{&#xA;formatted &#x2B;= string.Format(&quot;ID: {0,-15} Location: {1,50} {2} \r\n&quot;, key.Key, key.Value,&#xA;BFS.Window.GetText((IntPtr)key.Key)); &#xA;}&#xA;&#xA;BFS.Dialog.ShowMessageInfo(formatted);&#xA;}&#xA;}</pre><textarea id="code01a0ae98e7d472e3948dc4724b2e1f3a" name="code01a0ae98e7d472e3948dc4724b2e1f3a" 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;&#xA;using System.Drawing;&#xA;using System.Collections.Generic;&#xA;&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;IntPtr[] handle...]]></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="#code01a0ae98e7e97636aa4e03a69ac552cb" 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('code01a0ae98e7e97636aa4e03a69ac552cbJs'); 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="code01a0ae98e7e97636aa4e03a69ac552cbJs" name="code01a0ae98e7e97636aa4e03a69ac552cbJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Collections.Generic;&#xA;&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;IntPtr[] handles = BFS.Window.GetVisibleWindowHandles();&#xA;&#xA;int len = handles.Length;&#xA;SortedDictionary&amp;lt;int, string&amp;gt; positions = new SortedDictionary&amp;lt;int, string&amp;gt;();&#xA;string output = &quot;&quot;;&#xA;&#xA;for (int i = 0; i &amp;lt; len; i&#x2B;&#x2B;)&#xA;{&#xA;positions.Add((int)handles&amp;#91i&amp;#93, BFS.Window.GetBounds(handles&amp;#91i&amp;#93.ToString());&#xA;}&#xA;&#xA;foreach (KeyValuePair&amp;lt;int, string&amp;gt; key in positions)&#xA;{&#xA;output &#x2B;= &quot;ID: &quot; &#x2B; key.Key &#x2B; &quot; Location: &quot; &#x2B; key.Value &#x2B; &quot; &quot;&#xA;&#x2B; BFS.Window.GetText((IntPtr)key.Key) &#x2B; &quot;\r\n&quot;;&#xA;}&#xA;&#xA;BFS.Dialog.ShowMessageInfo(output);&#xA;}&#xA;}</pre><textarea id="code01a0ae98e7e97636aa4e03a69ac552cb" name="code01a0ae98e7e97636aa4e03a69ac552cb" 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="#code01a0ae98e7ec74a9b37e016ff5777928" 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('code01a0ae98e7ec74a9b37e016ff5777928Js'); 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="code01a0ae98e7ec74a9b37e016ff5777928Js" name="code01a0ae98e7ec74a9b37e016ff5777928Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;if (BFS.Application.IsAppRunningByFile(@&quot;C:\Program Files (x86)\Steam\Steam.exe&quot;))&#xA;{&#xA;IntPtr steam = BFS.Application.GetMainWindowByAppID(BFS.Application.GetAppIDByFile(@&quot;C:\Program Files (x86)\Steam\Steam.exe&quot;));&#xA;BFS.Window.SetSizeAndLocation(steam,1,1,1000,663);&#xA;}&#xA;}&#xA;}</pre><textarea id="code01a0ae98e7ec74a9b37e016ff5777928" name="code01a0ae98e7ec74a9b37e016ff5777928" 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=":)" /><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=":)" />
</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>