Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ie = new-object -com "InternetExplorer.Application"
- $ie.Visible = $true
- $win = Add-Type -Name win -MemberDefinition @'
- [DllImport("user32.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- public static extern bool SetForegroundWindow(IntPtr hWnd);
- '@ -Passthru
- $win::SetForegroundWindow($ie.HWND)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement