Application hangs can confuse FrigoTab
Closed this issue · 2 comments
FrigoCoder commented
FrigoTab forces resolution change by SendMessage WM_ActivateApp to the foreground application.
Unfortunately this waits for the target application, so if it hangs, it can delay execution of FrigoTab.
Try to change it to PostMessage or callback or timeout.
FrigoCoder commented
You could try a PostMessage WM_ACTIVATE instead of SendMessage, but also subscribe to CallWndProc WM_ACTIVATE, so maybe you could catch the moment where the application already changed resolution, but have not hanged yet.
FrigoCoder commented
Solved it with simply using PostMessage instead of SendMessage. Unfortunately this change broke #11 again.