-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathSet window.ps1
574 lines (519 loc) · 27 KB
/
Set window.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
<#
.SYNOPSIS
Resize and/or reposition the window for a specified process or launch a process with specified size and/or position
.PARAMETER processName
The names of processes to operate on
.PARAMETER processId
The PID of the process to operate on
.PARAMETER x
The x coordinate to position the window at
.PARAMETER y
The y coordinate to position the window at
.PARAMETER style
The style of the window
.PARAMETER mostRecent
Only operate on the most recently launched process where multiple process names match
.PARAMETER alwaysOntop
Make the window always on top
.PARAMETER timeoutMilliseconds
Time in milliseconds to wait from when the process is started to when the window adjustments are made
.PARAMETER launch
Launch the process specified rather than operating on an existing instance
.PARAMETER arguments
Arguments to pass to the process when using -launch
.EXAMPLE
& '.\Set window.ps1' -processId $pid -alwaysOnTop $true
Set the PowerShell window running the script to always be on top of other windows
.EXAMPLE
& '.\Set window.ps1' -processId $pid -alwaysOnTop $false
Set the PowerShell window running the script to not be on top of other windows
.EXAMPLE
& '.\Set window.ps1' -processname notepad -mostrecent -width 640 -height 480
Find the window for the most recently launched notepad process and set its dimentsions to 640 by 480
.EXAMPLE
& '.\Set window.ps1' -processname notepad -launch -width 1000 -height 500 -x 50 -y 50 -arguments "fred bloggs.txt"
Launch notepad on the file "fred bloggs.txt" and set the windows dimentsions to 1000 by 500 and position it at 50,50
.EXAMPLE
& '.\Set window.ps1' -processname notepad -launch -arguments "fred bloggs.txt" -style MAXIMIZE
Launch notepad on the file "fred bloggs.txt" and make the window maximized
.EXAMPLE
& '.\Set window.ps1' -processId 12345
Find the window for the process with pid 12345 and show its current size, position and attributes
.NOTES
Modification History:
2022/07/25 @guyrleech First public release
#>
<#
Copyright © 2022 Guy Leech
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#>
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$True,ValuefromPipeline=$True,ParameterSetName='ByName')]
[Alias("name")]
[array]$processName ,
[Parameter(Mandatory=$True,ValuefromPipeline=$False,ParameterSetName='ById')]
[int]$processId ,
[int]$width ,
[int]$height ,
[int]$x ,
[int]$y ,
[ValidateSet('FORCEMINIMIZE', 'HIDE', 'MAXIMIZE', 'MINIMIZE', 'RESTORE', 'SHOW', 'SHOWDEFAULT', 'SHOWMAXIMIZED', 'SHOWMINIMIZED', 'SHOWMINNOACTIVE', 'SHOWNA', 'SHOWNOACTIVATE', 'SHOWNORMAL')]
[string]$style ,
[switch]$mostRecent ,
[bool]$alwaysOnTop ,
[int]$timeoutMilliseconds ,
[switch]$launch ,
[string[]]$arguments
)
Begin
{
Add-Type @'
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int Left;
public int Top;
public int Right;
public int Bottom;
}
public static class user32
{
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsIconic(IntPtr hWnd);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsZoomed(IntPtr hWnd);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWindowVisible(IntPtr hWnd);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWindowUnicode(IntPtr hWnd);
[DllImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
[DllImport("user32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetWindowPos( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
}
'@ -ErrorAction Stop
}
Process
{
$process = $null
if( $processId -gt 0 )
{
$process = Get-Process -Id $processId -ErrorAction Stop
}
elseif( -Not [string]::IsNullOrEmpty( $processName ) )
{
if( $launch )
{
if( $processName.Count -ne 1 )
{
Throw "Can only launch a single process"
}
[hashtable]$launchParameters = @{
'FilePath' = $processName[0]
'PassThru' = $true
'ErrorAction' = 'stop'
}
if( $PSBoundParameters[ 'arguments' ] )
{
$launchParameters.Add( 'ArgumentList' , $arguments )
}
if( $PSBoundParameters[ 'style' ] )
{
[string]$startStyle = switch -Regex ($style)
{
'MAX' { 'Maximized' }
'MIN' { 'Minimized' }
'HIDE' { 'Hidden' ; $launchParameters.Add( 'NoNewWindow' , $true ) }
}
if( $null -ne $startStyle )
{
$launchParameters.Add( 'WindowStyle' , $startStyle )
}
}
$process = Start-Process @launchParameters
if( $process )
{
Write-Verbose -Message "Launched $($launchParameters.FilePath) pid is $($process.Id)"
## we need to wait for it to have a window
if( $PSBoundParameters.ContainsKey( ' ' ) )
{
$null = $process.WaitForInputIdle( $timeoutMilliseconds )
}
else
{
$null = $process.WaitForInputIdle()
}
}
## else launch failure will be reported above and code below will not run due to $process being null
}
else ## looking for existing process
{
if( $processName -and $processName -is [string] )
{
$processes = Get-Process -Name $processName -ErrorAction Stop
}
else
{
$processes = Get-Process -Name $processName
}
if( $processes -is [array] -and $processes.Count -gt 1 )
{
if( -Not $mostRecent )
{
## TODO should we have an option to iterate on all matching processes ?
Throw "Found $($processes.Count) processes for $processName and -mostrecent not specified"
}
else
{
$process = $processes | Sort-Object -Property StartTime -Descending | Select-Object -First 1
}
}
else
{
$process = $processes
}
}
}
if( $process )
{
## TODO we could do various things to the process such as change CPU priority, adjust working sets, etc
if( ( $windowHandle = $process.MainWindowHandle ) -and $windowHandle -ne [IntPtr]::Zero )
{
## https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos
[uint32]$flags = 0x4040 ## SWP_ASYNCWINDOWPOS | SWP_SHOWWINDOW
[IntPtr]$insertAfter = -2 ## -1 = HWND_TOPMOST , -2 = HWND_NOTOPMOST
[int]$changes = 0
if( $PSBoundParameters.ContainsKey( 'alwaysOnTop' ))
{
if( $alwaysOnTop )
{
$insertAfter = -1
}
$changes++
}
if( $style -ieq 'hide' )
{
$flags = $flags -bor 0x0080 ## SWP_HIDEWINDOW
$changes++
}
if( $width -gt 0 -or $height -gt 0 )
{
$changes++
}
else
{
$flags = $flags -bor 0x0001 ## SWP_NOSIZE
}
if( $PSBoundParameters.ContainsKey( 'x' ) -or $PSBoundParameters.ContainsKey( 'y' ) )
{
$changes++
}
else
{
$flags = $flags -bor 0x0002 ## SWP_NOMOVE
}
[bool]$result = $false
if( $changes -gt 0 -or $PSBoundParameters.ContainsKey( 'style' ) )
{
if( $launch -and $style -match 'MAX' ) ## if we launched the process maximised then we can't change it here otherwise it will not stay maximised
{
$result = $true
}
elseif( $changes -gt 0 )
{
Write-Verbose -Message ( "insertAfter {0} flags {1:x}" -f $insertAfter , $flags )
$result = [user32]::SetWindowPos( $windowHandle, $insertAfter , $x , $y , $width , $height , $flags ) ; $lastError = [ComponentModel.Win32Exception][Runtime.InteropServices.Marshal]::GetLastWin32Error()
}
if( -Not [string]::IsNullOrEmpty( $style ) )
{
$WindowStates = @{
'FORCEMINIMIZE' = 11
'HIDE' = 0
'MAXIMIZE' = 3
'MINIMIZE' = 6
'RESTORE' = 9
'SHOW' = 5
'SHOWDEFAULT' = 10
'SHOWMAXIMIZED' = 3
'SHOWMINIMIZED' = 2
'SHOWMINNOACTIVE' = 7
'SHOWNA' = 8
'SHOWNOACTIVATE' = 4
'SHOWNORMAL' = 1
}
$cmdShow = $WindowStates[ $style ]
if( $null -ne $cmdShow )
{
Write-Verbose -Message "Setting style to $style ($cmdShow)"
[bool]$styleResult = $false
$styleResult = [user32]::ShowWindowAsync( $windowHandle, [int]$cmdShow ) ; $lastError = [ComponentModel.Win32Exception][Runtime.InteropServices.Marshal]::GetLastWin32Error()
if( -Not $styleResult )
{
Write-Warning -Message "Failed ShowWindowAsync - $lastError"
}
elseif( $changes -eq 0 )
{
$result = $true ## so doesn't throw an error from the SetWindowPos since it didn't happen
}
}
else
{
Write-Warning -Message "Cannot map style `"$style`""
}
}
if( -Not $result)
{
Throw "Failed SetWindowPos - $lastError"
}
}
## no changes so report current window size and position
$windowRect = New-Object -TypeName RECT
$result = [user32]::GetWindowRect( $windowHandle, [ref]$windowRect ) ; $lastError = [ComponentModel.Win32Exception][Runtime.InteropServices.Marshal]::GetLastWin32Error()
if( -Not $result)
{
Write-Warning -Message "Failed GetWindowRect - $lastError"
}
else
{
[pscustomobject]@{
'pid' = $process.Id
'title' = $process.MainWindowTitle
'x' = $windowRect.Left
'y' = $windowRect.Top
'width' = $windowRect.Right - $windowRect.Left
'height' = $windowRect.Bottom - $windowRect.Top
'minimised' = [user32]::IsIconic( $windowHandle )
'maximised' = [user32]::IsZoomed( $windowHandle )
'unicode' = [user32]::IsWindowUnicode( $windowHandle )
'visible' = [user32]::IsWindowVisible( $windowHandle )
}
}
}
else
{
Throw "Process $($process.Name) ($($process.Id)) has no window handle"
}
}
else
{
Throw 'Unable to find process'
}
}
End
{
}
# SIG # Begin signature block
# MIIjmgYJKoZIhvcNAQcCoIIjizCCI4cCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUCrvrDy4yF3iTnS10K4syeOeN
# 1pCggh24MIIFMDCCBBigAwIBAgIQBAkYG1/Vu2Z1U0O1b5VQCDANBgkqhkiG9w0B
# AQsFADBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD
# VQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVk
# IElEIFJvb3QgQ0EwHhcNMTMxMDIyMTIwMDAwWhcNMjgxMDIyMTIwMDAwWjByMQsw
# CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu
# ZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQgSUQg
# Q29kZSBTaWduaW5nIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
# +NOzHH8OEa9ndwfTCzFJGc/Q+0WZsTrbRPV/5aid2zLXcep2nQUut4/6kkPApfmJ
# 1DcZ17aq8JyGpdglrA55KDp+6dFn08b7KSfH03sjlOSRI5aQd4L5oYQjZhJUM1B0
# sSgmuyRpwsJS8hRniolF1C2ho+mILCCVrhxKhwjfDPXiTWAY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