Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
If you are experiencing any issues with your desktop wallpaper or taskbar buttons
please download and install the latest DisplayFusion beta version before contacting support.

User Image
Chris Salvian
58 discussion posts
I have a couple of scripts that are only one or two lines but they are VERY slow.

This is one of them:

Code

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // Start Outlook
        BFS.Application.StartMaximized ("C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "/select outlook:Inspections");

        // Move Inspections window to main monitor
        BFS.Window.MoveToMonitorMaximized(BFS.Monitor.GetPrimaryMonitorID(), BFS.Window.GetWindowByText("Inspections*"));        
    }
}


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?

I've also got this one:

Code

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // Get the AppID for AutoCAD
        bool appID = BFS.Application.IsAppRunningByAppID(BFS.Application.GetAppIDByFile("*acad.exe"));
        
        //Check to see if another instance of AutoCAD is running. If it is, leave the wallpaper off
        if (appID) BFS.DisplayFusion.LoadWallpaperProfile("None");
        
        //If AutoCAD has completely shutdown, restore the normal wallpaper
        else BFS.DisplayFusion.LoadWallpaperProfile("Span");
    }
}


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?

Thanks

Chris
21 hours ago  • #1
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)