<?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: Cant Send CTRL+ALT+Pause to a Window</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0191611a-10fa-771a-aff2-23c75bf75711" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0191611a-10fa-771a-aff2-23c75bf75711</link>
<description>DisplayFusion RSS: Cant Send CTRL+ALT+Pause to a Window</description>
<lastBuildDate>Sat, 23 May 2026 23:13:24 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0191611a-10fa-771a-aff2-23c75bf75711</generator>
<item>
<title>RE: Cant Send CTRL+ALT+Pause to a Window</title>
<link>https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#4</link>
<pubDate>Fri, 23 Aug 2024 13:12:57 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[The BFS.Window.Focus(windowHandle); line just sends the code to the last focused window.
There might be something weird with the pause key, if you remove that and add a different key, does it work?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The BFS.Window.Focus(windowHandle); line just sends the code to the last focused window. <br/>
<br/>
There might be something weird with the pause key, if you remove that and add a different key, does it work?
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=0191611a-12c4-733e-8973-c9167ac3463a"/>
</item>
<item>
<title>RE: Cant Send CTRL+ALT+Pause to a Window</title>
<link>https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#3</link>
<pubDate>Mon, 19 Aug 2024 21:30:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I tried using Code
Copy
Select All
BFS.Input.SendKeys("%(^({VK_19}))");
but nothing happend.
other than using  BFS.Window.Focus(windowHandle); is there a better way to ensure that is the target window getting the keystroke? If I hit the keys on the keyboard it works every time.
Thanks.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I tried using <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="#code019e571d6587724a9ff7da631f85b9f4" 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('code019e571d6587724a9ff7da631f85b9f4Js'); 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="code019e571d6587724a9ff7da631f85b9f4Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SendKeys("%(^({VK_19}))");</pre><textarea id="code019e571d6587724a9ff7da631f85b9f4" name="code019e571d6587724a9ff7da631f85b9f4" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> but nothing happend.<br/>
<br/>
other than using  <b>BFS.Window.Focus(windowHandle);</b> is there a better way to ensure that is the target window getting the keystroke? If I hit the keys on the keyboard it works every time.<br/>
<br/>
Thanks.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=0191611a-12c4-733e-8973-c9167ac3463a"/>
</item>
<item>
<title>RE: Cant Send CTRL+ALT+Pause to a Window</title>
<link>https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#2</link>
<pubDate>Mon, 19 Aug 2024 14:53:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Try just running this line:
Code
Copy
Select All
BFS.Input.SendKeys("%(^({VK_19}))");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Try just running this line: <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="#code019e571d659074cd989398b8e1bee7cc" 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('code019e571d659074cd989398b8e1bee7ccJs'); 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="code019e571d659074cd989398b8e1bee7ccJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SendKeys("%(^({VK_19}))");</pre><textarea id="code019e571d659074cd989398b8e1bee7cc" name="code019e571d659074cd989398b8e1bee7cc" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=0191611a-12c4-733e-8973-c9167ac3463a"/>
</item>
<item>
<title>Cant Send CTRL+ALT+Pause to a Window</title>
<link>https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711</link>
<pubDate>Sat, 17 Aug 2024 16:09:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-send-ctrlaltpause-to-a-window/?ID=0191611a-10fa-771a-aff2-23c75bf75711</guid>
<category>DisplayFusion</category>
<description><![CDATA[Per this thread, I see that you cannot directly manipulate a full screen RDP window using display fusion.
https://www.displayfusion.com/Discussions/View/rdp-not-opening-on-selected-monitor/?ID=721b8409-321f-444e-8690-afc9a64f8779#4
As a workaround I have modified my saved rdp file and added the...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Per this thread, I see that you cannot directly manipulate a full screen RDP window using display fusion.<br/>
<br/>
https://www.displayfusion.com/Discussions/View/rdp-not-opening-on-selected-monitor/?ID=721b8409-321f-444e-8690-afc9a64f8779#4<br/>
<br/>
As a workaround I have modified my saved rdp file and added the value:<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="#code019e571d659677c49fa0577e6a1d7cd9" 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('code019e571d659677c49fa0577e6a1d7cd9Js'); 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="code019e571d659677c49fa0577e6a1d7cd9Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">smart sizing:i:1</pre><textarea id="code019e571d659677c49fa0577e6a1d7cd9" name="code019e571d659677c49fa0577e6a1d7cd9" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
With this value set, I can full screen the rdp window by pressing CTRL+ALT+PAUSE on the keyboard.<br/>
I am trying to automate this within a custom function but no matter what I have tried, I cannot send these characters to the window.<br/>
<br/>
<b>Function: Send CTRL+ALT+Pause</b><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="#code019e571d659871f7bc7598107eb31b7e" 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('code019e571d659871f7bc7598107eb31b7eJs'); 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="code019e571d659871f7bc7598107eb31b7eJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // your code goes here

        // Convert the window handle to hexadecimal
        string windowHandleHex = windowHandle.ToInt64().ToString("X");

        BFS.Window.Focus(windowHandle);

// Press and hold the Ctrl key
BFS.Input.SendKeyDown("Ctrl");
BFS.Input.SendKeyDown("Alt");
// ... perform any operations while Ctrl is held down ...
BFS.Input.SendKeys("{VK_PAUSE}");
// Release the Ctrl key
BFS.Input.SendKeyUp("Ctrl");
BFS.Input.SendKeyUp("Alt");
        
        
        //-- Send the CTRL + PAUSE keystrokes
//        BFS.Input.SendKeys("%^{VK_PAUSE}");
        //BFS.General.Sleep(500);
        //BFS.Input.SendKeys("^%{VK_PAUSE}");
        // ^ ctrl   % alt

        // Use the hexadecimal window handle in GetUserConfirm
        BFS.Dialog.GetUserConfirm("Current Hwnd " + windowHandleHex);

    }
}</pre><textarea id="code019e571d659871f7bc7598107eb31b7e" name="code019e571d659871f7bc7598107eb31b7e" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
As you can see from the above example I have tried both SendKeyDown and SendKeys, but neither are working for me. <br/>
<br/>
Using the AutoIT spy tool I can verify I am setting focus on the correct window handle.<br/>
<br/>
Any ideas as to what I am doing wrong?<br/>
<br/>
Thanks.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=0191611a-12c4-733e-8973-c9167ac3463a"/>
</item>
</channel>
</rss>