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?

Maximize all windows of specific apps

Description
This macro will maximize all windows of the applications you specify in the MyAppIDs list.
Language
C#.net
Minimum Version
Created By
drm31415
Contributors
-
Date Created
2d ago
Date Last Modified
2d ago

Scripted Function (Macro) Code

using System;
using System.Drawing;
using System.Collections;
using System.Collections.Generic;

public static class DisplayFusionFunction{
	public static void Run(IntPtr windowHandle){
		List<uint> MyAppIDs=new List<uint>();
		// Add AppIDs for apps to maximize
		MyAppIDs.Add(BFS.Application.GetAppIDByFile("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"));
		MyAppIDs.Add(BFS.Application.GetAppIDByFile("C:\\Program Files\\Mozilla Firefox\\firefox.exe"));
		MyAppIDs.Add(BFS.Application.GetAppIDByFile("C:\\Windows\\explorer.exe"));
		
		foreach (IntPtr window in BFS.Window.GetVisibleAndMinimizedWindowHandles()){
			if(MyAppIDs.Contains(BFS.Application.GetAppIDByWindow(window))){
            	BFS.Window.Maximize(window);
			}
		}
	}
}