You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have come back to this problem and I remember why I could not fix it.
in this little gist I have a program that prints all window creations and destructions. here
and when you open calculator you will see that it receives 2 messages, calculator created and calculator destroyed.
I'm going to leave this issue open if anyone knows how to deal with UWP notifications/events, since they seem to have some irregular properties.
I have come back to this problem and I remember why I could not fix it.
in this little gist I have a program that prints all window creations and destructions. here
and when you open calculator you will see that it receives 2 messages, calculator created and calculator destroyed.
I'm going to leave this issue open if anyone knows how to deal with UWP notifications/events, since they seem to have some irregular properties.
hmm ok so it seems that I have to find all the UWP processes and the threads responsible for them, then once I've done that I can setWindowsHookEx on that specific threadId and it'll work.
So I guess the way to deal with this, is to use WMI to detect processes that are created, check if those processes are UWP, and then install the hook specifically for those processes.
As per a comment on the HN discussion I think this may have to do with UWP window naming
Steps to reproduce:
Expected:
Calculator window becomes tiled
Actual:
Calculator window floats above tiled windows
The text was updated successfully, but these errors were encountered: