<?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: Problem with F11 key press</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=9ff3743e-102f-4603-9267-a583c7cd1aed" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=9ff3743e-102f-4603-9267-a583c7cd1aed</link>
<description>DisplayFusion RSS: Problem with F11 key press</description>
<lastBuildDate>Sat, 02 May 2026 06:38:47 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=9ff3743e-102f-4603-9267-a583c7cd1aed</generator>
<item>
<title>RE: Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#6</link>
<pubDate>Wed, 20 Dec 2017 17:15:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[No worries, glad to hear it!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No worries, glad to hear it!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#5</link>
<pubDate>Wed, 20 Dec 2017 03:41:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Adding a delay did solve the problem! Thanks a lot for your help]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Adding a delay did solve the problem! Thanks a lot for your help
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#4</link>
<pubDate>Tue, 19 Dec 2017 18:07:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[The problem is that the new window is getting detected before the page has loaded, so when the script runs, the "windowTitleActual" is just "Mozilla Firefox"
If you add a few seconds delay (BFS.General.ThreadWait(3000) before setting windowTitleActual, it should work correctly
Code
Copy
Selec...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The problem is that the new window is getting detected before the page has loaded, so when the script runs, the "windowTitleActual" is just "Mozilla Firefox"<br/>
<br/>
If you add a few seconds delay (BFS.General.ThreadWait(3000)<img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile-wink.light.svg" alt=";)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=";)" HelpButtonDataAlign="BelowMiddle" /> before setting windowTitleActual, it should work correctly <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/>
<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="#code019de7693e0076f7b615d081a7ecba62" 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('code019de7693e0076f7b615d081a7ecba62Js'); 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="code019de7693e0076f7b615d081a7ecba62Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static void Run(IntPtr windowHandle)
{
        uint targetMonitor = 2;
        string windowTitleToMatch = "MyWindow1 - Mozilla Firefox";
        
        BFS.General.ThreadWait(3000);

        string windowTitleActual = BFS.Window.GetText(windowHandle);
        
        if (windowTitleActual.Contains(windowTitleToMatch)) {
            BFS.Window.MoveToMonitor(targetMonitor, windowHandle);
            BFS.General.ThreadWait(250);
            BFS.Window.Focus(windowHandle);
            BFS.Input.SendKeys("{VK_122}");
        }
}</pre><textarea id="code019de7693e0076f7b615d081a7ecba62" name="code019de7693e0076f7b615d081a7ecba62" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#3</link>
<pubDate>Tue, 19 Dec 2017 05:49:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Keith,
Thank you for your reply. In fact, it was my mistake, I had a custom function assigned to F11. This would catch any F11 key pressed. After removing this function, F11 works as expected (and the script "Open Website in Default Web Browser and Full Screen on Specific Monitor" as well).
Now...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Keith,<br/>
<br/>
Thank you for your reply. In fact, it was my mistake, I had a custom function assigned to F11. This would catch any F11 key pressed. After removing this function, F11 works as expected (and the script "Open Website in Default Web Browser and Full Screen on Specific Monitor" as well).<br/>
<br/>
Now I'm still facing an issue when trying to open a browser full screen after clicking on a link.<br/>
It's easy to reproduce. First here are 2 simple html files:<br/>
<br/>
File index.html:<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="#code019de7693e127707b91ff6a3281b777d" 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('code019de7693e127707b91ff6a3281b777dJs'); 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="code019de7693e127707b91ff6a3281b777dJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;demo&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;a href="" onclick="openFct()" &gt;open MyWindow1&lt;/a&gt;
  &lt;script&gt;
    function openFct(e) {
        var child = window.open("mywindow1.html", "somegroup", "top=0,left=10");
        child.focus();
    }
  &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><textarea id="code019de7693e127707b91ff6a3281b777d" name="code019de7693e127707b91ff6a3281b777d" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
File mywindow1.html:<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="#code019de7693e157210a7dc63ee9f2835a5" 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('code019de7693e157210a7dc63ee9f2835a5Js'); 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="code019de7693e157210a7dc63ee9f2835a5Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;MyWindow1&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;MyWindow1&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><textarea id="code019de7693e157210a7dc63ee9f2835a5" name="code019de7693e157210a7dc63ee9f2835a5" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Open "index.html" (with Firefox) and click on the link. It should open another window. I would like this new window to open on a second monitor in full screen (F11).<br/>
<br/>
So I created the following function:<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="#code019de7693e1774e1ab9fd1cb8cc24274" 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('code019de7693e1774e1ab9fd1cb8cc24274Js'); 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="code019de7693e1774e1ab9fd1cb8cc24274Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static void Run(IntPtr windowHandle)
{
        uint targetMonitor = 2;
        string windowTitleToMatch = "MyWindow1 - Mozilla Firefox";
        
        string windowTitleActual = BFS.Window.GetText(windowHandle);
        
        if (windowTitleActual.Contains(windowTitleToMatch)) {
            BFS.Window.MoveToMonitor(targetMonitor, windowHandle);
            BFS.General.ThreadWait(250);
            BFS.Window.Focus(windowHandle);
            BFS.Input.SendKeys("{VK_122}");
        }
}</pre><textarea id="code019de7693e1774e1ab9fd1cb8cc24274" name="code019de7693e1774e1ab9fd1cb8cc24274" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Then I created a <b>Trigger</b>:<br/>
<ul class="ListBullet">
<li>Event: Window Created</li>
<li>Frequency: Always</li>
<li>Process Filename: C:\Program Files (x86)\Mozilla Firefox\firefox.exe</li>
<li>Action: Run function &lt;my function name&gt;</li></ul>
<br/>
Now click on the link again (in the html file) and it will open the window on the second monitor and go full screen. Yay it's working as expected! But if you close that new window and click on the link again then it seems the function is not executed because the new window remains on the first screen and is not full screen.<br/>
Now in Settings&gt; Triggers, click on "Apply". Click the link again (in the html file) and it will work as expected.<br/>
It seems that every time I must click on "Apply" to make my function working again.<br/>
<br/>
If I create another function (really similar to the first one):<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="#code019de7693e19743584bf5ae4322812e9" 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('code019de7693e19743584bf5ae4322812e9Js'); 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="code019de7693e19743584bf5ae4322812e9Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static void Run(IntPtr windowHandle)
{
        BFS.Window.MoveToMonitor(2, windowHandle);
        BFS.General.ThreadWait(250);
        BFS.Window.Focus(windowHandle);
        BFS.Input.SendKeys("{VK_122}");       
}</pre><textarea id="code019de7693e19743584bf5ae4322812e9" name="code019de7693e19743584bf5ae4322812e9" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
With this function it will work all the time! I can click many time on the link and it will always open the window on the second monitor and go full screen. (I don't need to click on "Apply" all the time)<br/>
<br/>
Can you reproduce this behavior?<br/>
<br/>
In my function, I need to test the window title, because depending of the window title, I will move the window on a different monitor.<br/>
Do you know if I should modify something in my function?<br/>
<br/>
Sorry for the long post. Please let me know if it is not clear.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#2</link>
<pubDate>Mon, 18 Dec 2017 16:46:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[That's really strange! F11 works fine over here, with and without DisplayFusion running. Could you attach a copy of your troubleshooting info?
Open the Settings  Troubleshooting tab
Click the "Export Info to File" button
Reply with the file attached]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
That's really strange! F11 works fine over here, with and without DisplayFusion running. Could you attach a copy of your troubleshooting info?<br/>
<ul class="ListBullet">
<li>Open the Settings > Troubleshooting tab</li>
<li>Click the "Export Info to File" button</li>
<li>Reply with the file attached</li></ul>
</div>
]]></content:encoded>
</item>
<item>
<title>Problem with F11 key press</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed</link>
<pubDate>Mon, 18 Dec 2017 01:50:45 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-f11-key-press/?ID=9ff3743e-102f-4603-9267-a583c7cd1aed</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hey
I'm currently  playing with DisplayFusion for a potential project. Basically we need  Firefox to open in full screen mode (like when you press F11).
I'm using DisplayFusion-9.1 (portable version) and the OS is Win10.
When DisplayFusion is running, I open Firefox (or Chrome) and I press F11...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hey<br/>
<br/>
I'm currently  playing with DisplayFusion for a potential project. Basically we need  Firefox to open in full screen mode (like when you press F11).<br/>
I'm using DisplayFusion-9.1 (portable version) and the OS is Win10.<br/>
<br/>
When DisplayFusion is running, I open Firefox (or Chrome) and I press F11, it doesn't go to full screen. If I close DisplayFusion and I press F11 then FF (or Chrome) goes to full screen.<br/>
How can I make sure that when I press F11, it works as expected when DF is running?<br/>
<br/>
It seems the script "Open Website in Default Web Browser and Full Screen on Specific Monitor" only moves the window to the second monitor, but it fails to go full screen.<br/>
I tried SendKeys with "{F11}" and "{VK_122}" but it doesn't work.<br/>
How to make this script working?<br/>
<br/>
Thanks<br/>
Alex
</div>
]]></content:encoded>
</item>
</channel>
</rss>