FrigoCoder/FrigoTab

Application hangs can confuse FrigoTab

Closed this issue · 2 comments

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.

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.

Solved it with simply using PostMessage instead of SendMessage. Unfortunately this change broke #11 again.