-
Notifications
You must be signed in to change notification settings - Fork 500
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
After v0.10.0 can't interact with windows that have UI Access #515
Comments
I believe that this bug was introduced during the fixing of #422. I will fix it soon. I also want to implement a mechanism for Magpie to collaborate with other programs. While windows with UIAccess permissions can currently stay on top during scaling, if I decide to support touch input, Magpie would also require UIAccess permissions, which would break these programs. This is a game of walls and ladders. |
Nice!
Do you have anything concrete in mind? I've developed a program called JL that let's you look up Japanese words and it works with Magpie quite well (it makes itself the topmost window on every clipboard change and you can interact with it with your mouse without it getting the focus) but I wonder if the experience can be made even smoother somehow.
If you ever decide to do that, please consider supplying an external manifest file so that we can use it without granting it the UI Access. (In case of JL, it would still be able to stay on top Magpie through the aforementioned method but users would need to grant JL the UI Access as well, which as you may know has some pretty inconvenient conditions that must be met.) |
For example,
I plan to create a separate program with UIAccess privilege, which can be called when high privilege operations are needed. This way, Magpie itself doesn't need to have UIAccess privilege. |
Nope. But the bug only seems to happen if I don't run Magpie as administrator. Try shrinking the On-Screen Keyboard vertically as much as possible and run Magpie without the administrator privilege and hopefully you will be able to reproduce it. (If I run the game as administrator but don't run Magpie as administrator, it seems like Magpie cannot auto scale the game when it's in the foreground. Should I open another issue for this, or is this the expected behavior?) |
This bug has been fixed in the latest dev branch. However, if you want to scale windows with administrator privileges, it's recommended to run Magpie as administrator to avoid potential issues. |
Correction: The bug is also present in v0.10.0-preview2, I've just didn't notice it because I've always run it as administrator. (I've started to run Magpie without administrator privileges mostly due to #511.) Apologies for the misdirection. The bug is not present in v0.9.1 though. |
Does this build fix the issue? |
Yes, it does fix the issue. Thanks! |
Magpie version 程序版本
0.10.0
Windows version 系统版本
Windows 10 22H2
Related screenshot (optional) 相关截图(可选)
Reproduction steps 复现步骤
You will be able to see the window that has UI Access even after you scale the game with Magpie (as expected) but you won't be able to interact with it. Before Magpie v0.10.0 (e.g. v0.10.0-preview2), we could interact with the window that has UI Access as well.
Interestingly enough, if you place the window that has UI access at the center of your screen, you will be able to interact with it.
Log files 日志文件
magpie.log
The text was updated successfully, but these errors were encountered: