@RhoSigma @Steve
Thanks for your replies.
Based on the Wiki example, I inserted the following Code fragment at the beginning of the program:-
desktop& = _SCREENIMAGE
MaxScreenx& = _WIDTH(desktop&)
MaxScreeny& = _HEIGHT(desktop&)
_FREEIMAGE desktop ' free image after measuring screen (it is not displayed)
SCREEN _NEWIMAGE(MaxScreenx&, MaxScreeny&, 32) ' program window is sized to fit
_SCREENMOVE 0, 0
PRINT "..."
then had my stuff calling my externalprogram
and then used my simple .BMP format screendump
open "A:\screen32.bmp" for binary as #1
... 56 byte header
FOR y% = 1799 TO 0 STEP -1
FOR x% = 0 TO 3199
c& = POINT(x%, y%)
r$ = CHR$(_RED32(c&))
g$ = CHR$(_GREEN32(c&))
b$ = CHR$(_BLUE32(c&))
a$ = CHR$(_ALPHA32(c&)) ' PUT #1, , a$ alpha field not saved in .bmp format used so ONLY 3 bytes RGB used per pixel
PUT #1, , r$
PUT #1, , g$
PUT #1, , b$
NEXT
NEXT
CLOSE #1
Now the externalprogram is NOT FULLSCREEN and the .bmp file is all black with my "..." at top left hand corner. Its as if I cannot access anything outside of the QB64 program window.
Any further suggestions (hoping its something I omitted)?