<?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: Able to open multiple MS Edge websites but unable to position to proper coordinates/Monitors</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=01911315-42ee-710a-a963-5a7316b35807" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=01911315-42ee-710a-a963-5a7316b35807</link>
<description>DisplayFusion RSS: Able to open multiple MS Edge websites but unable to position to proper coordinates/Monitors</description>
<lastBuildDate>Thu, 18 Jun 2026 05:32:45 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=01911315-42ee-710a-a963-5a7316b35807</generator>
<item>
<title>RE: Able to open multiple MS Edge websites but unable to position to proper coordinates/Monitors</title>
<link>https://www.displayfusion.com/Discussions/View/able-to-open-multiple-ms-edge-websites-but-unable-to-position-to-proper-coordinatesmonitors/?ID=01911315-42ee-710a-a963-5a7316b35807#2</link>
<pubDate>Tue, 06 Aug 2024 13:10:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/able-to-open-multiple-ms-edge-websites-but-unable-to-position-to-proper-coordinatesmonitors/?ID=01911315-42ee-710a-a963-5a7316b35807#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Could you export the script via the DisplayFusion settings  Functions  Scripted Function  Export Scripted Function, and send it over?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Could you export the script via the DisplayFusion settings > Functions > Scripted Function > Export Scripted Function, and send it over?
</div>
]]></content:encoded>
</item>
<item>
<title>Able to open multiple MS Edge websites but unable to position to proper coordinates/Monitors</title>
<link>https://www.displayfusion.com/Discussions/View/able-to-open-multiple-ms-edge-websites-but-unable-to-position-to-proper-coordinatesmonitors/?ID=01911315-42ee-710a-a963-5a7316b35807</link>
<pubDate>Fri, 02 Aug 2024 12:34:06 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/able-to-open-multiple-ms-edge-websites-but-unable-to-position-to-proper-coordinatesmonitors/?ID=01911315-42ee-710a-a963-5a7316b35807</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi, I have been trying to open up multiple sites at once and placing them in specific positions. This script works fine with chrome but it doesn't with MS Edge which is what I would like to use. Heres the script for reference.
using System;
using System.Drawing;
using System.Diagnostics;
usin...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi, I have been trying to open up multiple sites at once and placing them in specific positions. This script works fine with chrome but it doesn't with MS Edge which is what I would like to use. Heres the script for reference. <br/>
<br/>
using System;<br/>
using System.Drawing;<br/>
using System.Diagnostics;<br/>
using System.Threading;<br/>
<br/>
public static class DisplayFusionFunction<br/>
{<br/>
    public static void Run(IntPtr windowHandle)<br/>
    {<br/>
        // Define the applications and websites with their target monitor and positions<br/>
        string[,] appsAndWebsites = {<br/>
            { "https://chatgpt.com/", "1", "41", "41", "1223", "1310" },<br/>
            { "obsidian", "1", "1304", "41", "1236", "1310" },<br/>
            { "https://www.mindbodyonline.com/business", "1", "2580", "41", "1235", "635" },<br/>
            { "https://teams.microsoft.com/v2/?clientexperience=t2", "1", "2580", "716", "1235", "635" },<br/>
            { "https://outlook.office.com/mail/", "1", "3855", "41", "1224", "635" },<br/>
            { "https://app.ninety.io/home", "1", "3855", "716", "1224", "635" },<br/>
            { "https://trinet.hrpassport.com/ui-portal-global/#/app.main.iapp?url=%23%2Fssowidget%2Fhire&section=Company&menuId=114&external=Y", "2", "5136", "-126", "1048", "602" },<br/>
            { "https://app.predictiveindex.com/dashboard", "2", "5136", "492", "1048", "603" },<br/>
            { "https://employers.indeed.com/jobs?co=US&hl=en_US&from=gnav-menu-homepage&ikw=gnav-header-hire&isid=employerlink-US&trafficTK=1ho3vttqfimhu800&jstm=1718563562376&sortDirection=DESC&sortField=datePostedOnIndeed", "2", "5136", "1111", "1048", "603" },<br/>
            { "https://crm.sasquatchstrength.com/v2/location/HZj3qdFMVRelxWRUpk7D/conversations/conversations/VJQdQJMpdCw2hyjfPj2D", "3", "-1064", "-126", "1048", "602" },<br/>
            { "https://crm.sasquatchstrength.com/v2/location/HZj3qdFMVRelxWRUpk7D/conversations/conversations/bsRE70yZ2QeLdXEC8RLx", "3", "-1064", "492", "1048", "603" }<br/>
        };<br/>
<br/>
        // Open the applications and websites and move them to their target monitors<br/>
        for (int i = 0; i &lt; appsAndWebsites.GetLength(0); i++)<br/>
        {<br/>
            string appOrWebsite = appsAndWebsites[i, 0];<br/>
            uint monitorID = Convert.ToUInt32(appsAndWebsites[i, 1]);<br/>
            int x = Convert.ToInt32(appsAndWebsites[i, 2]);<br/>
            int y = Convert.ToInt32(appsAndWebsites[i, 3]);<br/>
            int width = Convert.ToInt32(appsAndWebsites[i, 4]);<br/>
            int height = Convert.ToInt32(appsAndWebsites[i, 5]);<br/>
<br/>
            if (appOrWebsite == "obsidian")<br/>
            {<br/>
                // Open the Obsidian app and move it to the specified position<br/>
                Process obsidianProcess = Process.Start(@"C:\Users\bcast\AppData\Local\Programs\obsidian\Obsidian.exe");<br/>
                if (obsidianProcess != null)<br/>
                {<br/>
                    // Wait for the process to start and get the window handle<br/>
                    obsidianProcess.WaitForInputIdle();<br/>
                    Thread.Sleep(5000); // Add delay to ensure window handle is available<br/>
                    IntPtr obsidianHandle = obsidianProcess.MainWindowHandle;<br/>
                    while (obsidianHandle == IntPtr.Zero)<br/>
                    {<br/>
                        obsidianHandle = obsidianProcess.MainWindowHandle;<br/>
                        Thread.Sleep(100);<br/>
                    }<br/>
                    BFS.Window.MoveToMonitor(monitorID, obsidianHandle);<br/>
                    BFS.Window.SetSizeAndLocation(obsidianHandle, x, y, width, height);<br/>
                }<br/>
            }<br/>
            else<br/>
            {<br/>
                IntPtr window = BFS.Web.OpenUrlNewWindow(appOrWebsite);<br/>
                BFS.Window.MoveToMonitor(monitorID, window);<br/>
                BFS.Window.SetSizeAndLocation(window, x, y, width, height);<br/>
            }<br/>
        }<br/>
    }<br/>
}
</div>
]]></content:encoded>
</item>
</channel>
</rss>