This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-FileFromWeb { | |
param ( | |
# Parameter help description | |
[Parameter(Mandatory)] | |
[string]$URL, | |
# Parameter help description | |
[Parameter(Mandatory)] | |
[string]$File | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Find the top-most window. We need the Z-order to be | |
//relative to this | |
HWND window = GetTopWindow(GetDesktopWindow()); | |
do | |
{ | |
//Your code | |
} | |
while (window = GetWindow(window, GW_HWNDNEXT)); |