Skip to content

Commit

Permalink
Fix: Make Position-Resizewindow accept -Debuglevel parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed May 28, 2021
1 parent 2f38697 commit abd65ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Position-ExplorerWindow/private/Position-ResizeWindow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function Position-ResizeWindow {
[Parameter(Mandatory=$True,Position=4)]
#[ValidateRange([int]::MinValue, [int]::MaxValue)]
[int]$Height
,
[Parameter(Mandatory=$False,Position=10)]
#[ValidateRange(0, 1)]
[int]$DebugLevel = 0
)

# NOTE: No longer using UIAutomation Module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function Position-ExplorerWindow {
# Try and reposition and resize Window
Write-Host "`tRepositioning and Resizing window..." -ForegroundColor Green

$success = Position-ResizeWindow -ProcessId $child_pid -Left $my_left -Top $my_top -Width $my_width -Height $my_height
$success = Position-ResizeWindow -ProcessId $child_pid -Left $my_left -Top $my_top -Width $my_width -Height $my_height -DebugLevel $DebugLevel
if ($success) {
Write-Host "`tSuccessfully repositioned and resized window." -ForegroundColor Green

Expand Down

0 comments on commit abd65ec

Please sign in to comment.