<?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: Script Help</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=44e2021d-eb29-4ed7-954c-f6add5b57b94" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=44e2021d-eb29-4ed7-954c-f6add5b57b94</link>
<description>DisplayFusion RSS: Script Help</description>
<lastBuildDate>Thu, 16 Apr 2026 16:10:27 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=44e2021d-eb29-4ed7-954c-f6add5b57b94</generator>
<item>
<title>RE: Script Help</title>
<link>https://www.displayfusion.com/Discussions/View/script-help/?ID=44e2021d-eb29-4ed7-954c-f6add5b57b94#2</link>
<pubDate>Fri, 29 Apr 2016 14:14:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/script-help/?ID=44e2021d-eb29-4ed7-954c-f6add5b57b94#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[You could create a script that does this, for sure. If you want to only change the Y position, you just need to get the current X position, then use that as the X value in the function, like this:
Code
Copy
Select All
using System;
using System.Drawing;
public static class DisplayFusionFunc...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You could create a script that does this, for sure. If you want to only change the Y position, you just need to get the current X position, then use that as the X value in the function, like this:<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="#code019d970ee0f97598a2d242c781811624" 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('code019d970ee0f97598a2d242c781811624Js'); 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="code019d970ee0f97598a2d242c781811624Js" 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)
{
// set the X value to the current value
int windowX = BFS.Window.GetBounds(windowHandle).X;

// set the Y value to whatever you'd like it to be
int windowY = 400;

// move the window
BFS.Window.SetLocation(windowHandle, windowX, windowY);
}
}</pre><textarea id="code019d970ee0f97598a2d242c781811624" name="code019d970ee0f97598a2d242c781811624" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Script Help</title>
<link>https://www.displayfusion.com/Discussions/View/script-help/?ID=44e2021d-eb29-4ed7-954c-f6add5b57b94</link>
<pubDate>Thu, 28 Apr 2016 06:13:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/script-help/?ID=44e2021d-eb29-4ed7-954c-f6add5b57b94</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi! Quick question about setting window positions with DisplayFusion. I'm using it on an ultrawide monitor, so I've set a rule that snaps the windows into thirds instead of just half, and it was fantastic and easy and took probably 4 minutes in total. I would like to be able to do this without lo...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi! Quick question about setting window positions with DisplayFusion. I'm using it on an ultrawide monitor, so I've set a rule that snaps the windows into thirds instead of just half, and it was fantastic and easy and took probably 4 minutes in total. I would like to be able to do this without losing "corner snapping" functionality though, in total that would be 9 positions; full, top, bottom, in left, center, right. A bit unweildly to have separate hotkeys for,<br/>
<br/>
 As far as I can tell, theres no way to create a custom function that preserves X position, and changes y position. Apparently only one main key can be used, (so no ALT+C+UP), So I'm going to dive into scripting<br/>
<br/>
I guess my question is; Is there an argument to change only Y position? Or should I enter all 9 positions, and basically have it say "If Left, cycle through LeftTop, LeftCentre, LeftBottom"<br/>
<br/>
Any insights as to how to go about this?
</div>
]]></content:encoded>
</item>
</channel>
</rss>