H.InputSimulator
H.InputSimulator copied to clipboard
Simulation operation failed when terminal lose focus
I'm trying to write a simple Console project based on UIAutomation with .Net Core 8.0 and WPF references to automatically install a msi file. But I found that when the program executed after line 107 , the terminal window lost its focus , mouse movement and clicks had no effect ( you will not encounter this situation in debugging mode). I really don't know how to deal with this , I even run the program as the administrator but don't work.
Please give me a way to send the msi file to you so that you can have a test.