Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Paul J Coene
8 discussion posts
So here is a sequence I do manually every day.

Open Chrome.
Click the Googgle Hangouts icon which launches the Google Hangouts window
Select my primary channel and click the arrow to launch that channel in a seaparate window
Move that window to a particular monitor at a set location

So, I was able to use a trigger to move the window to the set location using a trigger to move the window on creation and to set its location.

The next thing I'd like to do is close the main Google Hangouts window.. I cant see how to do that.
Apr 3, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You can close a window with a scripted function (you can add these on the Settings > Functions tab). This code will close a window that has specific text in the Window Title:

Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        BFS.Window.Close(BFS.Window.GetWindowByText("*Google Hangouts - Main Window*"));
    }
}


Just make sure to use text that's unique to the main Google Hangouts window, not the second window that you're launching.

After adding that function and applying the settings, you can add it as an action to your Trigger rule.

Hope that helps!
Apr 5, 2019  • #2
User Image
Paul J Coene
8 discussion posts
Nice. Thank you.
Apr 5, 2019 (modified Apr 5, 2019)  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)