Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
NorxMAL
8 discussion posts
I'm trying to get so if I click a Eve Online window, all Eve Online clients will come to the foreground/ontop (So no other windows are over them). I have 4 clients, and they would each have a unique name.

I tried to do this myself, but I don't know the syntax of either C# or Visual basic.

Code

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.Window.IsRestored Run(BFS.Window.Focus(BFS.Window.GetWindowByText("Eve - Client1");BFS.Window.GetWindowByText("Eve - Client2");BFS.Window.GetWindowByText("Eve - Client3");BFS.Window.GetWindowByText("Eve - Client4"))
    }
Nov 7, 2017 (modified Nov 8, 2017)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The problem with doing that on a Window Restored Trigger would be that it would just constantly loop, because you'd click to restore, the Trigger would fire, which would run the script that restores the other windows, and then the Trigger would fire for those windows, etc etc.

I can help write the scripted function that would restore all four windows, but you'd need to run it via a hotkey instead of automatically when restoring. If that sounds like it will work for you, let me know :)

Thanks!
Nov 10, 2017  • #2
User Image
NorxMAL
8 discussion posts
If you could do that, that would be great :)
Nov 11, 2017  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, try this out :)

Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
        foreach (IntPtr window in BFS.Window.GetAllWindowHandles())
        {
            if (BFS.Window.GetText(window).StartsWith("Eve - "))
            {
                BFS.Window.Focus(window);
            }
        }        
}
}
Nov 13, 2017  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)