Detect Full Screen application - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Detect Full Screen application (/showthread.php?tid=67047) Detect Full Screen application by J-Thread on 10-07-2006 at 11:34 AM
A very short question: How can I detect that there is a full screen application running? I tried the following code: code: But that has got 2 problems: 1. It returns true if my desktop is the foreground window (i.e. there aren't really any windows) 2. There can be another window on top of the fullscreen window, and then this function returns false, which is not what I want. Does anybody know how to fix this? Using GetClientRect doesn't work either RE: Detect Full Screen application by Mnjul on 10-09-2006 at 01:47 PM
quote:I believe you can test against this by comparing the hwnd returned by GetForegroundWindow with one returned by GetDesktopWindow(). RE: Detect Full Screen application by ShawnZ on 10-09-2006 at 01:58 PM Enumerate every HWND except GetDesktopWindow() to see if they have the metrics of the screen? RE: Detect Full Screen application by J-Thread on 10-09-2006 at 02:51 PM
Both sound good but don't work... RE: Detect Full Screen application by Ash_ on 10-09-2006 at 05:06 PM
psuedocode code: untested as i dont have any compilers installed atm but those 4 API calls should produce what you need. RE: Detect Full Screen application by J-Thread on 10-09-2006 at 05:16 PM
Edit: Err I should test a bit more before posting... That code also returns true on maximized windows. The following code solves problem 1: code: But the second problem still exists... |