New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find process with id #606
Comments
I was having the same issue. I found a workaround that is not pretty but it works. For some reason when you Launch notepad, because it is a windows store app, it gets the wrong process ID. I tried using .LaunchStoreApp() using the AUMID but that didn't work either. So the solution I found was: FlaUI.Core.Application.Launch("notepad.exe"); Could probably reduce the sleep. This probably won't work if you have multiple instances of the application running. |
Which Windows Version are you on? On Win10 your code should work, on Win 11 the problem is indeed that it is a Windows Store APP which you need to handle differently. |
I am indeed on Windows 11. How would it be best handled in Win 11? I tried using .LaunchStoreApp() but ran into the same error as using .Launch(). |
I can launch notepad in Windows 11 using this code: I found the app id using PowerShell. But I can't seem to proceed to control notepad. Get-StartApps | Format-Table -Property Name, AppID This command lists all installed apps along with their AppID, which is the appUserModelId. So this code should work but it doesn't. It seems to work with other windows store apps.
For example this works:
|
Always throwing an exception GetMainWindow Could not find process with id
The text was updated successfully, but these errors were encountered: