<?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: Hotkey to open new window + give it focus + move mouse into it</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=ca8f3b5d-76dc-4257-b337-90d79c46cae9" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=ca8f3b5d-76dc-4257-b337-90d79c46cae9</link>
<description>DisplayFusion RSS: Hotkey to open new window + give it focus + move mouse into it</description>
<lastBuildDate>Thu, 09 Apr 2026 15:30:51 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=ca8f3b5d-76dc-4257-b337-90d79c46cae9</generator>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#7</link>
<pubDate>Tue, 12 Oct 2021 18:08:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Owen, I'll check it out.
I'm currently using a trigger
which allows me to open a taskbar app or scroll through the open windows and offset the mouse cursor a lttle from the top left corner.
That seems to do pretty much what I want - may need some tweaking.
Code
Copy
Select All
publi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Owen, I'll check it out.<br/>
I'm currently using a trigger<br/>
which allows me to open a taskbar app or scroll through the open windows and offset the mouse cursor a lttle from the top left corner.<br/>
That seems to do pretty much what I want - may need some tweaking.<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="#code019d72de1b547002a66c2a84fd83ab39" 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('code019d72de1b547002a66c2a84fd83ab39Js'); 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="code019d72de1b547002a66c2a84fd83ab39Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static void Run(IntPtr windowHandle)
{
// Get the window's current bounds.
Rectangle currentWindowBounds = BFS.Window.GetBounds(windowHandle);
// Move mouse offset from Top Left.
BFS.Input.SetMousePosition(currentWindowBounds.X + currentWindowBounds.Width/20, currentWindowBounds.Y + currentWindowBounds.Height / 20);
}</pre><textarea id="code019d72de1b547002a66c2a84fd83ab39" name="code019d72de1b547002a66c2a84fd83ab39" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#6</link>
<pubDate>Tue, 12 Oct 2021 17:48:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
It would likely be easier if you wrapped the whole thing into one scripted function. Here's an example using chrome:
Code
Copy
Select All
BFS.Application.Start("C:\\ProgramFiles\\Google\\Chrome\\Application\\chrome.exe", "");
IntPtr window = BFS.Application.GetMainWindowByFile("*chro...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
It would likely be easier if you wrapped the whole thing into one scripted function. Here's an example using chrome:<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="#code019d72de1b5b72acb1b3b605259c11f2" 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('code019d72de1b5b72acb1b3b605259c11f2Js'); 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="code019d72de1b5b72acb1b3b605259c11f2Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Application.Start("C:\\ProgramFiles\\Google\\Chrome\\Application\\chrome.exe", "");
IntPtr window = BFS.Application.GetMainWindowByFile("*chrome.exe*");
BFS.Window.Focus(window);
BFS.DisplayFusion.RunFunction("Move Mouse Cursor to Centre of Active Window");</pre><textarea id="code019d72de1b5b72acb1b3b605259c11f2" name="code019d72de1b5b72acb1b3b605259c11f2" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Let me know if that works for you.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#5</link>
<pubDate>Sat, 09 Oct 2021 13:46:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Owen - works perfectly.
So now I have ({WIN} + digit from numeric keypad) as a shortcut for my Taskbar programs.  For example, {WIN} + 1 sends {WIN}({VK_49}){WIN}({VK_219}) where VK_219 is invariant but VK_49 changes for each program.
The natural next step would be to pass the digit VK_4...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Owen - works perfectly.<br/>
So now I have ({WIN} + digit from numeric keypad) as a shortcut for my Taskbar programs.  For example, {WIN} + 1 sends {WIN}({VK_49}){WIN}({VK_219}) where VK_219 is invariant but VK_49 changes for each program.<br/>
The natural next step would be to pass the digit VK_49 as a parameter rather than having a separate scripted function for each digit.<br/>
I see that parameters can be passed in Triggers and Custom Functions but that doesn't seem to be available in Scripted Functions.  It doesn't seem like I can just replace my Scripted Function with a Custom Function.<br/>
Any suggestions appreciated.<br/>
Donal.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#4</link>
<pubDate>Fri, 08 Oct 2021 15:12:25 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thaks Owen,
I'll try that.
Donal.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thaks Owen,<br/>
I'll try that.<br/>
Donal.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#3</link>
<pubDate>Fri, 08 Oct 2021 15:08:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
If you create a scripted function in DisplayFusion (DisplayFusion Settings  Functions  Scripted Function  Add Scripted Function), you can use this line to send key combinations: BFS.Input.SendKeys("");
As you type in that line, it should prompt you for the keys you want to send in the qu...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
If you create a scripted function in DisplayFusion (DisplayFusion Settings > Functions > Scripted Function > Add Scripted Function), you can use this line to send key combinations: BFS.Input.SendKeys("");<br/>
<br/>
As you type in that line, it should prompt you for the keys you want to send in the quotations. You can then add a hotkey to the script.<br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#2</link>
<pubDate>Fri, 08 Oct 2021 14:01:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[It seems like I can define a second Windows + key (e.g. Win + [) to
"Move Mouse Cursor to Centre of Active Window".
So is it possible to create a single hotkey to carry out the two consecutively e.g Win + 1 followed by Win + [.
And the same for other digits!.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It seems like I can define a second Windows + key (e.g. Win + [) to<br/>
"Move Mouse Cursor to Centre of Active Window".<br/>
So is it possible to create a single hotkey to carry out the two consecutively e.g Win + 1 followed by Win + [.<br/>
And the same for other digits!.
</div>
]]></content:encoded>
</item>
<item>
<title>Hotkey to open new window + give it focus + move mouse into it</title>
<link>https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9</link>
<pubDate>Fri, 08 Oct 2021 08:04:33 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/hotkey-to-open-new-window-give-it-focus-move-mouse-into-it/?ID=ca8f3b5d-76dc-4257-b337-90d79c46cae9</guid>
<category>DisplayFusion</category>
<description><![CDATA[I've just started using the software (on a Windows 10 machine with dual monitors). I have no idea if this functionality already exists or whether it would be very difficul to implement.  Any help appreciated!
Typically, I'd open a new window for a program in the taskbar using Windows + number. I...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've just started using the software (on a Windows 10 machine with dual monitors). I have no idea if this functionality already exists or whether it would be very difficul to implement.  Any help appreciated!<br/>
Typically, I'd open a new window for a program in the taskbar using Windows + number. It doesn't matter much where the mouse appears in the window (near the top left for preference).
</div>
]]></content:encoded>
</item>
</channel>
</rss>