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?

Search for Window by Title

Description
This script will prompt you to enter some text to search for. It will switch to the window that contains that text in the title.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Jan 19, 2017
Date Last Modified
Jan 19, 2017

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
    	// Prompt for the text to search for
		string searchText = BFS.Dialog.GetUserInput("Enter part of the window title:", "");
        
        // Focus the window that contains that text in the title
		BFS.Window.Focus(BFS.Window.GetWindowByText("*" + searchText + "*"));
	}
}