FindWindow_ & Fullscreen apps
Posted: Tue May 25, 2004 3:04 pm
Hi everyone,
This may be a bit of a noob question but i've searched here already and could not find anything that can help me....so here goes.
I need to find the handle of a window that is running fullscreen mode (not maximized).
My scenario:
I set up a hotkey using RegisterHotkey which does a FindWindow on a particular app title then closes the window.
I then launch my 3rd party app (using RunProgram - mode 2) that runs in fullscreen mode.
When I press my key combo it shuts the external program immediately, unregisters the hotkey and returns back to the main program.
So far so good, but it doesn't work on Win98 when in fullscreen mode - it only works when it is in windowed mode. It works perfectly on 2000/XP in either mode though.
Is this a limitation of Win98 or is there another method I should know about ?
I can find the process easily enough and kill it but don't want to use it as the app detects that it wasn't shut down properly when run again and displays a big messagebox - not good
This is the only problem I have left with my program - can anyone help ?
Kind Regards
KrazyK
This may be a bit of a noob question but i've searched here already and could not find anything that can help me....so here goes.
I need to find the handle of a window that is running fullscreen mode (not maximized).
My scenario:
I set up a hotkey using RegisterHotkey which does a FindWindow on a particular app title then closes the window.
I then launch my 3rd party app (using RunProgram - mode 2) that runs in fullscreen mode.
When I press my key combo it shuts the external program immediately, unregisters the hotkey and returns back to the main program.
So far so good, but it doesn't work on Win98 when in fullscreen mode - it only works when it is in windowed mode. It works perfectly on 2000/XP in either mode though.
Is this a limitation of Win98 or is there another method I should know about ?
I can find the process easily enough and kill it but don't want to use it as the app detects that it wasn't shut down properly when run again and displays a big messagebox - not good
This is the only problem I have left with my program - can anyone help ?
Kind Regards
KrazyK