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?

User Image
Darth Chaos
4 discussion posts
I've got a function in the titlebar that I can click that will mirror the window to a specific monitor. Unfortunately, when that window becomes unfocused the mirror pauses. I'm trying to find a way so that any mirrors continue without pausing if they're not based on the active (focused) window.

For reference: I'm using this in a game shop. We have 3 TVs tied to a single PC. Our judges can mirror the standings to a particular TV. But items like a timer or video stop when the user switches to a different active window.
9 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Which mirror function are you using? If you're using the "Mirror Window" function it shouldn't be pausing when another window is focused
8 days ago  • #2
User Image
Darth Chaos
4 discussion posts
Quote:
Which mirror function are you using? If you're using the "Mirror Window" function it shouldn't be pausing when another window is focused


I'm using this:

using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
// - Active window when run by hotkey
// - Trigger target when run by a Trigger 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)
{
// Mirror the window and move it
IntPtr mirrorWindow = BFS.DisplayFusion.MirrorWindow(windowHandle);
BFS.Window.MoveToMonitorMaximized(1, mirrorWindow);

// Loop until key is pressed
while (true)
{
// if you press Ctrl + Shift + F2 together, close the Mirror Window and exit the script
if (BFS.Input.IsKeyDown("17;16;112"))
{
BFS.Window.Close(mirrorWindow);
break;
}

// sleep for a bit so we don't run-up the CPU
BFS.General.Sleep(50);
}
}
}

I modified it so I could use different SHFT+CTRL+F# to kill the mirror. This one goes to monitor 1 and uses SHFT+CTRL+F1 to close the mirror.
8 days ago  • #3
User Image
Darth Chaos
4 discussion posts
Here's a video to show you what I'm trying to do. This is an app I downloaded from the MS store. But it happens with Youtube, etc.
• Attachment [protected]: Mirror.mp4 [12,284,589 bytes]
8 days ago  • #4
User Image
Darth Chaos
4 discussion posts
Quote:
Which mirror function are you using? If you're using the "Mirror Window" function it shouldn't be pausing when another window is focused


Any update?
5 days ago  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)