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
FeelsGood
4 discussion posts
I am usualu use function "hide while minimized" when i am using Outlook.
and here is the problem, whyle this function is turned on "GetAppIDByFile" is not working, so i kind find out the ID of the process, and move the Outlook to next monitor.

Any help?:)))

Code

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
uint appID = BFS.Application.GetAppIDByFile("*outlook.exe");
IntPtr outlookWindow = BFS.Application.GetMainWindowByAppID(appID);
BFS.Window.MoveToMonitorMaximized(2, outlookWindow);
    }
}


Ups it is seems working.... Falce alarm...
Mar 4, 2019 (modified Mar 4, 2019)  • #1
User Image
FeelsGood
4 discussion posts
Hi guys,

I used the same script for tick tick but it didnt work.
It is only works when its not minimized to the tray.

What i want, when i plug in my dock TickTick shpuld move to the second monitor to the specified place.
Now it is only moves when not minimized to the tray, and autmoaticaly maximizing.

any thoughts?
Sep 7, 2021  • #2
User Image
FeelsGood
4 discussion posts
anyone ? pleease!
Sep 8, 2021  • #3
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hello,

So if I understand correctly, when you dock your laptop, you want an application called TickTick to maximize and move to monitor 2? Currently it doesn't work if the window is minimized?

Thanks!
Sep 8, 2021  • #4
User Image
FeelsGood
4 discussion posts
Hi Owen,

Yeap you are right. It doesnot work if app minimized to tray.
Sep 9, 2021  • #5
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hello,

Have you tried adding a line before moving the window just to maximize it? Something like this:

Code

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        uint appID = BFS.Application.GetAppIDByFile("*edge*.exe");
        IntPtr outlookWindow = BFS.Application.GetMainWindowByAppID(appID);
        BFS.Window.Maximize(outlookWindow);
        BFS.Window.MoveToMonitorMaximized(2, outlookWindow);
    }
}
Sep 10, 2021  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)