vhanla / winxcorners

Hot corners for Windows 10 & 11
https://apps.codigobit.info/2015/10/winxcorners-hot-corners-for-windows-10.html
MIT License
605 stars 42 forks source link

Corner will ranomly won't trigger action (screen saver) #55

Open Shasoosh opened 1 month ago

Shasoosh commented 1 month ago

Sometimes moving to the top right corner will not trigger the screen saver. Going to the taskbar and left clicking on WinXCorners icon once, the winxcorners ui will popup, then the top right corner will trigger agaion.

To Reproduce This happens randomly

Expected behavior Moving to the corner should trigger the action every time.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

vhanla commented 1 month ago

Sometimes that would happen only if the foreground window is elevated and this application runs in normal permissions, (unless you start it as admin), since sharing data between different programs (in elevation wise), is not allowed in Windows. I suspect that would be the reason, since I haven't seen that happens with normal programs running (windows), at least in my everyday usage. 🤔💭 If that random issue is happening only using normal windows (programs), please, let me now.

_____ [ almost off topic] However, I'm adding an alternative method using global wise system mouse hooks, which would be better, some suggest, since it won't be "triggering constantly" the mouse state via WINAPI, but I saw that it completely stops sending mouse coordinates whenever I use an admin elevated program like the Task Manager, which is not the case with polling with a timer, as it is currently working. With polling cursor position, sometimes, it can even override that limitation imposed by Windows, and I preferred over WH_MOUSE_LL hook. I don't like the idea to run this tool as admin to fix that limitation, but it is necessary if you are constantly using admin elevated programs. Maybe a windows service (which will require admin privileges to install) would be an option, since setting a run at startup for an application that asks the user to give permission with UAC screen each time it starts Windows logon, would not be nice, unless I opt to implement a batch to set it to start as a programmed task which allows to bypass the UAC for elevated privileged programs.

Shasoosh commented 1 month ago

Thank you for the reply. I usually use standard permission programs, but there might be a particular program that I frequently use that is causing an issue. Any idea how I can track this? Does WinXCorenrs have a log file?

The alternative method sounds interesting!

Shasoosh commented 1 month ago

After another day of use with normal programs while winXcorners is set to "Run this program as an Administrator" this is still happening. Hot corner will randomly stop triggering actions.

vhanla commented 1 month ago

Thank you for your feedback. I will look more deep into the code. 🤔