<?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: CMD: Target function for specific window?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7</link>
<description>DisplayFusion RSS: CMD: Target function for specific window?</description>
<lastBuildDate>Wed, 08 Apr 2026 07:28:56 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7</generator>
<item>
<title>RE: CMD: Target function for specific window?</title>
<link>https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7#3</link>
<pubDate>Tue, 15 May 2018 17:52:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Nope! Was just waiting for one of our devs to do up an example script. If you go to Functions  Download Scripted, you can grab the "Get Last Focused Window" script. That should get the window that last had focus
At the moment we're not likely to make too many changes to DisplayFusionCommand but ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Nope! Was just waiting for one of our devs to do up an example script. If you go to Functions > Download Scripted, you can grab the "Get Last Focused Window" script. That should get the window that last had focus <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/>
At the moment we're not likely to make too many changes to DisplayFusionCommand but I have added your requests to our list for consideration in the future.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=538ff9b8-8c91-4018-b395-e9b1976959f1"/>
</item>
<item>
<title>RE: CMD: Target function for specific window?</title>
<link>https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7#2</link>
<pubDate>Tue, 15 May 2018 01:46:37 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Looks like it fell through the cracks]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Looks like it fell through the cracks <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>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=538ff9b8-8c91-4018-b395-e9b1976959f1"/>
</item>
<item>
<title>CMD: Target function for specific window?</title>
<link>https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7</link>
<pubDate>Thu, 10 May 2018 14:34:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cmd-target-function-for-specific-window/?ID=ac5050f6-d287-45b8-9ddb-8068de1c7eb7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi!
Just discovered DisplayFusionCommand.
If I understood correctly, currently the available commands are only global in nature (i.e. close all windows, wallpapers stuff etc).
I feel like there's a huge unrealized potential though; targeting a function to a specific window, or at the very leas...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi!<br/>
Just discovered DisplayFusionCommand.<br/>
If I understood correctly, currently the available commands are only global in nature (i.e. close all windows, wallpapers stuff etc).<br/>
<br/>
I feel like there's a huge unrealized potential though; targeting a function to a specific window, or at the very least, <i>to the last window used</i>. This is because running -hotkeyrun Maximize Window, maximizes my cmd window. <br/>
<br/>
I'll explain why I think that would upgrade the CMD functionality tremendously:<br/>
1. My main use of DF is for running functions on windows. Move around screen, always on top, transparency etc. This is impossible with DF Command.<br/>
<br/>
2. I would have loved to remember all the hotkeys for all the functions that I like, but my memory isn't good enough. A perfect solution would be being able to just run functions through the terminal, i.e.<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="#code019d6bfe87e973c0a7b9c6c4aa615f6f" 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('code019d6bfe87e973c0a7b9c6c4aa615f6fJs'); 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="code019d6bfe87e973c0a7b9c6c4aa615f6fJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">DisplayFusionCommand.exe -hotkeyrun "Maximize Window"</pre><textarea id="code019d6bfe87e973c0a7b9c6c4aa615f6f" name="code019d6bfe87e973c0a7b9c6c4aa615f6f" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>maximizes last window used</i><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="#code019d6bfe87ec75529fc72dda37523ccc" 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('code019d6bfe87ec75529fc72dda37523cccJs'); 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="code019d6bfe87ec75529fc72dda37523cccJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">DisplayFusionCommand.exe -hotkeyrun "MoveLeftBottom"</pre><textarea id="code019d6bfe87ec75529fc72dda37523ccc" name="code019d6bfe87ec75529fc72dda37523ccc" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>moves last window to the bottom left corner of screen</i><br/>
<br/>
etc.<br/>
<br/>
3. An additional, very simple script could simplify things even further - accepting flags and arguments. Imagine the following:<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="#code019d6bfe87ee70a3af8da4867ed25a98" 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('code019d6bfe87ee70a3af8da4867ed25a98Js'); 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="code019d6bfe87ee70a3af8da4867ed25a98Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">dfc move=leftbottom</pre><textarea id="code019d6bfe87ee70a3af8da4867ed25a98" name="code019d6bfe87ee70a3af8da4867ed25a98" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>self explanatory</i><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="#code019d6bfe87f07308af923a7281a26fec" 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('code019d6bfe87f07308af923a7281a26fecJs'); 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="code019d6bfe87f07308af923a7281a26fecJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">dfc size=80</pre><textarea id="code019d6bfe87f07308af923a7281a26fec" name="code019d6bfe87f07308af923a7281a26fec" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>size is a function that gets an int argument, and changes the size of the last used window to 80% of what it had been</i><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="#code019d6bfe87f2761c86c381f2ee021998" 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('code019d6bfe87f2761c86c381f2ee021998Js'); 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="code019d6bfe87f2761c86c381f2ee021998Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">dfc size=80 "Notepad"</pre><textarea id="code019d6bfe87f2761c86c381f2ee021998" name="code019d6bfe87f2761c86c381f2ee021998" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>same as above, but for the first window whose title includes "Notepad"</i> <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="#code019d6bfe87f47134abc9fe0e2dfe3294" 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('code019d6bfe87f47134abc9fe0e2dfe3294Js'); 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="code019d6bfe87f47134abc9fe0e2dfe3294Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">dfc move=(25,25,25,25) "Notepad"</pre><textarea id="code019d6bfe87f47134abc9fe0e2dfe3294" name="code019d6bfe87f47134abc9fe0e2dfe3294" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>moves the first 4 "Notepad" windows each to a different corner of the screen</i> <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="#code019d6bfe87f6733589aa35005773ca1c" 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('code019d6bfe87f6733589aa35005773ca1cJs'); 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="code019d6bfe87f6733589aa35005773ca1cJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">dfc alwaysontop MyCustomizedScript</pre><textarea id="code019d6bfe87f6733589aa35005773ca1c" name="code019d6bfe87f6733589aa35005773ca1c" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<i>can call several independent functions</i><br/>
<br/>
<span style="text-decoration:underline;">There's a hacky solution that I could build in the meanwhile</span>, if only I knew how to write a BFS script that gets the last window used  <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-laugh-squint.light.svg" alt=":D" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":D" HelpButtonDataAlign="BelowMiddle" />  If someone could direct me, that would be great and I'd upload my solution within the following days.<br/>
That would include an exe that handles cmd args, wraps them nicely so BFS API could understand them, and sends things to DisplayFusionCommand.exe -hotkeyrun % varies based on args %. <br/>
<br/>
To clarify what I need: something that simulates Alt+Tab (focus last window).<br/>
<br/>
Thanks a lot!<br/>
Gilad<br/>
<br/>
/edit<br/>
I uploaded a completely fake GIF that shows how the end result could look <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/>
There's a .mp4 if the GIF doesn't work for some reason.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=538ff9b8-8c91-4018-b395-e9b1976959f1"/>
</item>
</channel>
</rss>