<?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: Attach multiple key combinations to the same Scripted Function?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018</link>
<description>DisplayFusion RSS: Attach multiple key combinations to the same Scripted Function?</description>
<lastBuildDate>Sun, 19 Apr 2026 19:35:55 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018</generator>
<item>
<title>RE: Attach multiple key combinations to the same Scripted Function?</title>
<link>https://www.displayfusion.com/Discussions/View/attach-multiple-key-combinations-to-the-same-scripted-function/?ID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018#2</link>
<pubDate>Fri, 26 Feb 2021 19:09:23 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/attach-multiple-key-combinations-to-the-same-scripted-function/?ID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
Unfortunately, this isn't possible.
Sorry I couldn't be of more help!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
Unfortunately, this isn't possible.<br/>
<br/>
Sorry I couldn't be of more help!
</div>
]]></content:encoded>
</item>
<item>
<title>Attach multiple key combinations to the same Scripted Function?</title>
<link>https://www.displayfusion.com/Discussions/View/attach-multiple-key-combinations-to-the-same-scripted-function/?ID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018</link>
<pubDate>Tue, 23 Feb 2021 14:58:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/attach-multiple-key-combinations-to-the-same-scripted-function/?ID=8f9b7d1d-8059-4699-a1a2-9ea02f7e9018</guid>
<category>DisplayFusion</category>
<description><![CDATA[I've written a scripted function that I use to position windows at various pre-defined locations on the monitor, cycling through various pre-defined sizes, depending on the current location/position.
For convenience, I invoke it with these key Ctrl-Alt combinations:
q w e
a s d
z x c
Each of...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've written a scripted function that I use to position windows at various pre-defined locations on the monitor, cycling through various pre-defined sizes, depending on the current location/position.<br/>
<br/>
For convenience, I invoke it with these key Ctrl-Alt combinations:<br/>
<br/>
q w e<br/>
a s d<br/>
z x c<br/>
<br/>
Each of which selects a monitor corner or adjusts width/height.<br/>
<br/>
The script is complicated enough, and I tweak the pre-defined sizes/positions enough that I don't want to have to copy it 9 times to apply it to each key combination.  Currently my approach is to have each key combination call ScriptSettings.WriteValue with the key character, then invoke my WinMgmt script, which calls ScriptSettings.ReadValue to take the appropriate action.<br/>
<br/>
Is there any way to directly connect all 9 of these keypresses to the same script?  And to determine in script which key invoked it?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
</channel>
</rss>