Page 3 of 3

Re: Screenshot of desktop but not current window

Posted: Wed Jan 16, 2013 10:24 am
by American Ninja
I'm really sorry Rashad, and I truly appreciate that you're really trying hard to help and all the time you've put into it, but your last updated code still fails. Here's what happens if I give the focus to a maximized Notepad window (which must not be included in the screenshot):

Image

Like I said in the first post, I just want the foreground window, no matter what size it is, to not be included. So line 21 shouldn't be looking for a specific hard-coded window title anyway, and should be testing for GetForegroundWindow_() instead.

Re: Screenshot of desktop but not current window

Posted: Wed Jan 16, 2013 3:28 pm
by RASHAD
There is no way I know to get the last Active Windows because of many circumstances
unless you have a watch dog to catch it


http://www.purebasic.fr/english/viewforum.php?f=12

Re: Screenshot of desktop but not current window

Posted: Wed Jan 16, 2013 3:34 pm
by American Ninja
Thank you very much for trying... it's a hard nut to crack!!! :mrgreen: