- #@&cls&powershell "type %~s0|out-string|iex"&pause&exit
- $a=Add-Type -memberDefinition '[DllImport("user32.dll")]public static extern IntPtr SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int Y, int cx, int cy, int wFlags);' -name Win32SetWindowPos -namespace Win32Functions -passThru
- $b=(ps|?{$_.MainWindowTitle -match '黑风注册表定位器'}).MainWindowHandle
- $a::SetWindowPos($b,-2,$null,$null,$null,$null,$null)
复制代码
|