<?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: Slow scripting</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=01a19d39-9b8e-7527-a4a8-2d48d5df5d6d" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=01a19d39-9b8e-7527-a4a8-2d48d5df5d6d</link>
<description>DisplayFusion RSS: Slow scripting</description>
<lastBuildDate>Tue, 03 Nov 2026 15:58:00 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=01a19d39-9b8e-7527-a4a8-2d48d5df5d6d</generator>
<item>
<title>Slow scripting</title>
<link>https://www.displayfusion.com/Discussions/View/slow-scripting/?ID=01a19d39-9b8e-7527-a4a8-2d48d5df5d6d</link>
<pubDate>Mon, 02 Nov 2026 17:06:01 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/slow-scripting/?ID=01a19d39-9b8e-7527-a4a8-2d48d5df5d6d</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a couple of scripts that are only one or two lines but they are VERY slow.
This is one of them:
Code
Copy
Select All
public static class DisplayFusionFunction&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        // Start Outlook&#xA;        BFS.Application.S...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a couple of scripts that are only one or two lines but they are VERY slow.<br/>
<br/>
This is one of them:<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="#code01a1a221b43674a38e5a8650311ba111" 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('code01a1a221b43674a38e5a8650311ba111Js'); 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="code01a1a221b43674a38e5a8650311ba111Js" name="code01a1a221b43674a38e5a8650311ba111Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">public static class DisplayFusionFunction&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        // Start Outlook&#xA;        BFS.Application.StartMaximized (&quot;C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE&quot;, &quot;/select outlook:Inspections&quot;);&#xA;&#xA;        // Move Inspections window to main monitor&#xA;        BFS.Window.MoveToMonitorMaximized(BFS.Monitor.GetPrimaryMonitorID(), BFS.Window.GetWindowByText(&quot;Inspections*&quot;));        &#xA;    }&#xA;}</pre><textarea id="code01a1a221b43674a38e5a8650311ba111" name="code01a1a221b43674a38e5a8650311ba111" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
There is a noticeable 3-5 second delay between when the outlook window opens and the next line when it moves it to the primary monitor. Is there any way to speed this up?<br/>
<br/>
I've also got this one:<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="#code01a1a221b43d71358d381941f88062ae" 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('code01a1a221b43d71358d381941f88062aeJs'); 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="code01a1a221b43d71358d381941f88062aeJs" name="code01a1a221b43d71358d381941f88062aeJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">public static class DisplayFusionFunction&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        // Get the AppID for AutoCAD&#xA;        bool appID = BFS.Application.IsAppRunningByAppID(BFS.Application.GetAppIDByFile(&quot;*acad.exe&quot;));&#xA;        &#xA;        //Check to see if another instance of AutoCAD is running. If it is, leave the wallpaper off&#xA;        if (appID) BFS.DisplayFusion.LoadWallpaperProfile(&quot;None&quot;);&#xA;        &#xA;        //If AutoCAD has completely shutdown, restore the normal wallpaper&#xA;        else BFS.DisplayFusion.LoadWallpaperProfile(&quot;Span&quot;);&#xA;    }&#xA;}</pre><textarea id="code01a1a221b43d71358d381941f88062ae" name="code01a1a221b43d71358d381941f88062ae" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
Again there is a long (up to 10 second) delay betweeen AutoCAD closing and the wallpaper being restore. Is there any way to speed this up?<br/>
<br/>
Thanks<br/>
<br/>
Chris
</div>
]]></content:encoded>
</item>
</channel>
</rss>