Hey Guys could use some help
.
We have a script to move some Acrobat Reader Files to a specific Monitor but can't figure out whats wrong with it atm.
Heres the script.
Maybe one of you knows whats wrong with it.
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)
{
BFS.General.ThreadWait(250);
if (BFS.Window.GetText(windowHandle).Contains("Adobe Acrobat Reader DC - 1"))
BFS.Window.MoveToMonitorMaximized(1, windowHandle);
else if (BFS.Window.GetText(windowHandle).Contains("Adobe Acrobat Reader DC - 2"))
BFS.Window.MoveToMonitorMaximized(2, windowHandle);
else if (BFS.Window.GetText(windowHandle).Contains("Adobe Acrobat Reader DC - 3"))
BFS.Window.MoveToMonitorMaximized(3, windowHandle);
}
}