Skip to content

Instantly share code, notes, and snippets.

@wolfreak99
wolfreak99 / FocusLastActiveWindowOnOtherMonitorImproved
Last active July 31, 2017 12:46
(DisplayFusion) An improved version of Thomas Malloch's "Focus Last Active Window on Other Monitor" script. Submitted for approval
// This script is a modified version of Thomas Malloch's "Focus Last Active Window on Other Monitor", last modified Sep 14, 2016.
// The original script can be found here:
// https://www.displayfusion.com/ScriptedFunctions/View/?ID=feb3f25b-de43-40d3-bddc-23a13bdde7bb
//
// The following items have been changed
// - IsDisplayFusionWindowOrHiddenExplorerWindow now stores "BFS.Window.GetClass(window)" into a string, whereas it was executed in each IF check
// - The typo "visable" was corrected to "visible"
// - "using System.Drawing;" has been removed because it is not used.
//
// Modification by wolfreak99
@wolfreak99
wolfreak99 / FocusLastActiveWindowOnOtherMonitorImproved
Created July 31, 2017 12:28
An improved version of Thomas Malloch's "Focus Last Active Window on Other Monitor" script, for BinaryFortress's "DisplayFusion" application. Submitted for approval
// This script is a modified version of Thomas Malloch's "Focus Last Active Window on Other Monitor", last modified Sep 14, 2016.
// The original script can be found here:
// https://www.displayfusion.com/ScriptedFunctions/View/?ID=feb3f25b-de43-40d3-bddc-23a13bdde7bb
//
// The following items have been changed
// - GetVisibleWindowHandles is now directly stored into a List, whereas it was previously iterated through and stored into a seperate dictionary.
// - IsDisplayFusionWindowOrHiddenExplorerWindow now stores "BFS.Window.GetClass(window)" into a string, whereas it was executed in each IF check
// - The typo "visable" was corrected to "visible"
// - "using System.Drawing;" has been removed because it is not used.
//