I'm trying to open Chrome and Chrome incognito in split screen with a powershell script with WASP.
Chrome however used the same processname for normal and incognito screens. I found a way how i can get the process ID of the incognito one doing a win32_process search.
How can i use the process ID in Select-UiElement to move it around?
Select-UIElement -ProcessID $procID -Name "*chrome*" | Invoke-Transform.Move -x 100 -y 0 -Passthru
gives error:
Select-UIElement : A parameter cannot be found that matches parameter name 'ProcessID'.
At line:17 char:18
+ Select-UIElement -ProcessID $procID -Name "*chrome*" | Invoke-Transfo ...
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Select-UIElement], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Select-UIElement
Hi,
I'm trying to open Chrome and Chrome incognito in split screen with a powershell script with WASP. Chrome however used the same processname for normal and incognito screens. I found a way how i can get the process ID of the incognito one doing a win32_process search.
How can i use the process ID in Select-UiElement to move it around?
Select-UIElement -ProcessID $procID -Name "*chrome*" | Invoke-Transform.Move -x 100 -y 0 -Passthru
gives error: