Skip to content
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

Application hangs can confuse FrigoTab #20

Closed
FrigoCoder opened this issue Jan 4, 2018 · 2 comments
Closed

Application hangs can confuse FrigoTab #20

FrigoCoder opened this issue Jan 4, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@FrigoCoder
Copy link
Owner

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
Copy link
Owner Author

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 FrigoCoder added the bug Something isn't working label Jan 4, 2018
@FrigoCoder
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant