From 157af3cc7b4cd7efd9ebfab74d0912ec99d81a83 Mon Sep 17 00:00:00 2001 From: shupershuff <63577525+shupershuff@users.noreply.github.com> Date: Wed, 28 Aug 2024 21:25:35 +1200 Subject: [PATCH] Delete WindowMover.ps1 No longer needed --- WindowMover.ps1 | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 WindowMover.ps1 diff --git a/WindowMover.ps1 b/WindowMover.ps1 deleted file mode 100644 index 70dcf84..0000000 --- a/WindowMover.ps1 +++ /dev/null @@ -1,26 +0,0 @@ -$Script:WindowMoverVersion = "1.0.0" -Add-Type @" -using System; -using System.Runtime.InteropServices; -public class WindowAPI { - [DllImport("user32.dll")] //we have to import this Dynamic link library as this contains methods for getting and setting window locations. - [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool GetWindowRect( //Used to get Window coordinates - IntPtr hWnd, out RECT lpRect); - - [DllImport("user32.dll")] - [return: MarshalAs(UnmanagedType.Bool)] - public extern static bool MoveWindow( //Used to move windows - IntPtr handle, int x, int y, int width, int height, bool redraw); - - [DllImport("user32.dll")] - [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool SetForegroundWindow(IntPtr hWnd); //Used to bring window to foreground :) -} -public struct RECT { - public int Left; // x position of upper-left corner - public int Top; // y position of upper-left corner - public int Right; // x position of lower-right corner - public int Bottom; // y position of lower-right corner -} -"@