Hi,
You can open task scheduler from start menu and create a task to run the application when the user is logged in. I didn't find a way set the window position in powertoys, however the MoveWindow function could be helpful. You can create a PowerShell script to invoke the function and add the script to the login task.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-movewindow
As MoveWindow is a Win32 function it can be used like this
$MethodDefinition = @'
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
public static extern bool MoveWindow(int hWnd, int X,int Y, int nWidth, int nHeight, bool bRepaint);
'@
$user32 = Add-Type -MemberDefinition $MethodDefinition -Name 'user32' -Namespace 'Win32' -PassThru
$WindowHandle = (Get-Process notepad | Get-ChildWindow).MainWindowHandle | Select-Object -Unique
$user32::MoveWindow($WindowHandle,300,300,1000,1000, $true)
I used the Get-ChildWindow funtion from the below link to get the window handle.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.