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?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

Refresh All Visible Internet Explorer Windows

Description
This script will give focus to, and refresh (F5) all Internet Explorer windows that are not minimized.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
May 3, 2016
Date Last Modified
May 3, 2016

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run()
	{
		IntPtr[] windows = BFS.Window.GetVisibleWindowHandles();
		foreach (IntPtr window in windows)
		{
			if (BFS.Application.GetMainFileByWindow(window).EndsWith("iexplore.exe"))
			{
				BFS.Window.Focus(window);
				BFS.General.ThreadWait(250);
				BFS.Input.SendKeys("{VK_116}");
			}
		}
	}
}