Screenshot of desktop but not current window

Just starting out? Need help? Post your questions and find answers here.
American Ninja
User
User
Posts: 24
Joined: Mon Jan 14, 2013 8:01 am

Re: Screenshot of desktop but not current window

Post 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.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 5022
Joined: Sun Apr 12, 2009 6:27 am

Re: Screenshot of desktop but not current window

Post 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
Egypt my love
American Ninja
User
User
Posts: 24
Joined: Mon Jan 14, 2013 8:01 am

Re: Screenshot of desktop but not current window

Post by American Ninja »

Thank you very much for trying... it's a hard nut to crack!!! :mrgreen:
Post Reply