<?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: How to use a scripted function to press Win+Tab?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=bb018869-63f7-468b-800b-20e0223caa89" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=bb018869-63f7-468b-800b-20e0223caa89</link>
<description>DisplayFusion RSS: How to use a scripted function to press Win+Tab?</description>
<lastBuildDate>Sat, 23 May 2026 20:29:12 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=bb018869-63f7-468b-800b-20e0223caa89</generator>
<item>
<title>RE: How to use a scripted function to press Win+Tab?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89#3</link>
<pubDate>Sun, 02 Jul 2023 19:05:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks, that worked!
I came up with those key codes by looking up the VK keyboard codes which brought up a Microsoft page with VK codes for all the keys. I had incorrectly assumed those must be what I need after seeing VK codes for other keys being used in examples for DisplayFusion.
I saw it m...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks, that worked!<br/>
<br/>
I came up with those key codes by looking up the VK keyboard codes which brought up a Microsoft page with VK codes for all the keys. I had incorrectly assumed those must be what I need after seeing VK codes for other keys being used in examples for DisplayFusion.<br/>
<br/>
I saw it mentioned that I could get it to generate those key combinations for me, however I was having trouble figuring out how. I did just figure it out now though. It only works if I use the "Insert BFS Code" button instead of manually typing out the line.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to use a scripted function to press Win+Tab?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89#2</link>
<pubDate>Sun, 02 Jul 2023 18:47:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[I'm not sure how you came to that string.  This is the one that is generated for me and seems to work:
Code
Copy
Select All
BFS.Input.SendKeys("{WIN}({VK_9})");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm not sure how you came to that string.  This is the one that is generated for me and seems to work:<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="#code019e56871190700089a16af114051e13" 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('code019e56871190700089a16af114051e13Js'); 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="code019e56871190700089a16af114051e13Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SendKeys("{WIN}({VK_9})");</pre><textarea id="code019e56871190700089a16af114051e13" name="code019e56871190700089a16af114051e13" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>How to use a scripted function to press Win+Tab?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89</link>
<pubDate>Sun, 02 Jul 2023 08:26:19 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-use-a-scripted-function-to-press-wintab/?ID=bb018869-63f7-468b-800b-20e0223caa89</guid>
<category>DisplayFusion</category>
<description><![CDATA[I am having trouble making a scripted function that presses Win+Tab. My goal is to set the DisplayFusion taskbar to have a shortcut to the scripted function, which I figure should give me what is essentially the Task View button since it isn't currently supported by the DisplayFusion taskbar.
Fr...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I am having trouble making a scripted function that presses Win+Tab. My goal is to set the DisplayFusion taskbar to have a shortcut to the scripted function, which I figure should give me what is essentially the Task View button since it isn't currently supported by the DisplayFusion taskbar.<br/>
<br/>
From some googling, I figured this should work, but it doesn't seem to. Any ideas what I've done wrong?<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="#code019e5687119a74bfb8926f77de0cf619" 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('code019e5687119a74bfb8926f77de0cf619Js'); 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="code019e5687119a74bfb8926f77de0cf619Js" 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)
    {
        BFS.Input.SendKeys("{VK_LWIN}({VK_TAB})");
    }
}</pre><textarea id="code019e5687119a74bfb8926f77de0cf619" name="code019e5687119a74bfb8926f77de0cf619" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>