Page 1 of 1
Google Chrome Pages as files
Posted: Thu Apr 21, 2022 2:42 pm
by Natter
Hi,
I save application windows and browser pages to files using the Save Window() function. If these are windows of any application or pages of FireFox, IE browsers, everything is fine. But if these are Google Chrome browser pages, I get files with a black square. What could be the reason ?
Re: Google Chrome Pages as files
Posted: Thu Apr 21, 2022 3:01 pm
by karinha
Show via code how you are doing. It's easier to help.
Regards, saludos.
Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 5:59 am
by Natter
The code is simple:
1. Through
EnumChildWindows() I get a list of handles of visible windows
2. For each handle I show the window in full screen
ShowWindow(hWn, 3) and through
SaveWindow(hWn, path+file name, width, height,) I save the DC windows to a file (bmp/jpg/png)
Everything is fine, but it does not work to copy DC to a file from the Google Chrome page

Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 7:11 am
by Jimmy
hi,
i have similar Problem when try to make "Snapshot" of running Video
but you always can use
than i can get Bitmap in Clipboard and "DrawDCtoDC" it to new empty Bitmap
under HMG i use "Bos Taurus", not sure how to o it with FiveWin
Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 7:34 am
by Natter
Simulate a Print screen, and then save the Clipboard to a file... This, however, is not very convenient because you will have to pull the windows to the foreground. But can do that. Thank you, Jimmy !