Thanks for suggestion but no need to use the gb.Desktop component as the SelectWindow app is now working OK. Using the Desktop.Windows property (with that component) returns a list of windows but documentation does not say whether it's sorted in priority order (which is needed to select window on top where user clicks on area of overlapping windows). I also like the idea that current method is consistent with the SelectArea app (both apps' appropriate Form & its Class code becoming part of my StreamRecorder app).have also been working on this. I think your life would be a lot easier if you used the gb.Desktop component. The details of the open windows, their location and size details are all there for the taking. Just find the open window you want and PictureBoxMain.Picture = hWindow.GetScreenshot(). Have alook at the attached.
UPDATE
the image you showed (when I tried to copy that by right clicking it and pasting it, didn't work. The Type Mismatch was an error in my coding, it should have said something like "Connection Error". This is the same problem I have with get-iplayer running in Terminal mode after more than a minute e.g. get-iplayer . (BTW You must key that dot). Stop get-iplayer by use of Ctrl & Z.All I got was "Please Try Again Later as BBC iPlayer Servers Not Responding"
and
Code: Select all
john@JohnPC:~$ get-iplayer .
get_iplayer v3.25, Copyright (C) 2008-2010 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use --conditions for details.
INFO: Indexing tv programmes (concurrent)
ERROR: Failed to download BBC Alba schedule page (3/3): https://www.bbc.co.uk/schedules/p00fzl67/2020/w26
ERROR: Connection error: SSL connect attempt failed
ERROR: Failed to download BBC Four schedule page (3/3): https://www.bbc.co.uk/schedules/p00fzl6b/2020/w26
ERROR: Connection error: SSL connect attempt failed
^Z
[8]+ Stopped get-iplayer .