<?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: Function to open multiple applications?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=4709af32-6005-4ed4-b477-d5e250acecc8" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=4709af32-6005-4ed4-b477-d5e250acecc8</link>
<description>DisplayFusion RSS: Function to open multiple applications?</description>
<lastBuildDate>Thu, 16 Apr 2026 11:30:59 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=4709af32-6005-4ed4-b477-d5e250acecc8</generator>
<item>
<title>RE: Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#6</link>
<pubDate>Wed, 20 Jul 2016 20:22:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Here is a custom function to Start Websites in Multiple Locations. I also submitted it for sharing.
Code
Copy
Select All
using System;
using System.Drawing;
using System.Collections.Generic;
// Description: This function starts all of Binary Fortress' web pages in different positions with ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Here is a custom function to Start Websites in Multiple Locations. I also submitted it for sharing.<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="#code019d960f039f739598220683f01c6ffd" 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('code019d960f039f739598220683f01c6ffdJs'); 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="code019d960f039f739598220683f01c6ffdJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Collections.Generic;

// Description: This function starts all of Binary Fortress' web pages in different positions with the default web browser.
// Based on the Start Multiple Websites on Different Monitors function Created By: Thomas Malloch (BFS)

class Rectangles : List&lt;Rectangle&gt; { // helper for List&lt;Rectangle&gt; initialization
    public void Add(int x, int y, int w, int h) {
        Add(new Rectangle(x, y, w, h));
    }
}

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Window Location target when run by a Window Location 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) {
//make an array of websites you would like to have opened
string[] websites = {
"http://www.binaryfortress.com/",
"http://www.displayfusion.com/",
"http://www.checkcentral.cc/",
"http://www.clipboardfusion.com/",
"http://www.fileseek.ca/",
"http://www.itunesfusion.com/",
"http://www.logfusion.ca/",
"http://www.wallpaperfusion.com/"
};
// make an array of window positions for the websites
Rectangle[] positions = new Rectangles {
            { 50, 50, 500, 500 },
            { 550, 50, 500, 500 },
            { 50, 550, 500, 500 },
            { 550, 550, 500, 500 },
            { 550, 1050, 500, 500 },
            { 50, 1050, 500, 500 },
            { 1050, 550, 500, 500 },
            { 1050, 50, 500, 500 }
}.ToArray();

for (int w = 0; w &lt; websites.Length; ++w) {
var window = BFS.Web.OpenUrlNewWindow(websites[w]);

//if we failed to get the handle, continue to next loop iteration
if(window == IntPtr.Zero)
continue;

//move the window to the specified location
var p = positions[w];
            BFS.Window.SetSizeAndLocation(window, p.X, p.Y, p.Width, p.Height); // shouldn't this take a Rectangle???
}
}
}</pre><textarea id="code019d960f039f739598220683f01c6ffd" name="code019d960f039f739598220683f01c6ffd" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#5</link>
<pubDate>Wed, 20 Jul 2016 11:51:48 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[I´d need that script too.
the idea is to open 6 IE and locate them in the same screen at an specific coordinates.
Is it possible to have an script for that or an example one which I could change to my needs?
Thank you]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I´d need that script too.<br/>
<br/>
the idea is to open 6 IE and locate them in the same screen at an specific coordinates.<br/>
<br/>
Is it possible to have an script for that or an example one which I could change to my needs?<br/>
<br/>
Thank you
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#4</link>
<pubDate>Thu, 21 Jan 2016 19:33:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, will do! Do you need to position the windows to specific X,Y co-ordinates, or just maximized on specific monitors?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, will do! Do you need to position the windows to specific X,Y co-ordinates, or just maximized on specific monitors?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#3</link>
<pubDate>Wed, 20 Jan 2016 14:09:33 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Yes, please! I'm a senior server-side programmer by trade, but have no experience in C# or VB. However, if I'm given a working example of what I need, I'd figure it out right quick. It'd be great to have an example of not only opening multiple applications but also in sizing and positioning the w...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Yes, please! I'm a senior server-side programmer by trade, but have no experience in C# or VB. However, if I'm given a working example of what I need, I'd figure it out right quick. It'd be great to have an example of not only opening multiple applications but also in sizing and positioning the windows once opened (if possible). I'm on a dual monitor setup, just FYI (in case that matters). Thanks!<br/>
<br/>
P.S. It'd be great if this functionality was baked into DF. <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" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#2</link>
<pubDate>Mon, 18 Jan 2016 20:51:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[The only way to do this at the moment would be with a custom script, but it's pretty basic. Would you like a sample script?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The only way to do this at the moment would be with a custom script, but it's pretty basic. Would you like a sample script?
</div>
]]></content:encoded>
</item>
<item>
<title>Function to open multiple applications?</title>
<link>https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8</link>
<pubDate>Mon, 18 Jan 2016 13:37:04 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-to-open-multiple-applications/?ID=4709af32-6005-4ed4-b477-d5e250acecc8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Is it possible to create a function that can open multiple applications from a single keystroke combination without getting into the custom scripting? I'd be cool if I could create something that allows me to launch all of my work applications and re-size and position the windows onto my two moni...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Is it possible to create a function that can open multiple applications from a single keystroke combination without getting into the custom scripting? I'd be cool if I could create something that allows me to launch all of my work applications and re-size and position the windows onto my two monitors how I like them...
</div>
]]></content:encoded>
</item>
</channel>
</rss>