FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Google Chrome Pages as files
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Google Chrome Pages as files
Posted: Thu Apr 21, 2022 02:42 PM

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 ?

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Google Chrome Pages as files
Posted: Thu Apr 21, 2022 03:01 PM

Show via code how you are doing. It's easier to help.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 05:59 AM
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 :-)
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 07:11 AM
hi,

i have similar Problem when try to make "Snapshot" of running Video

but you always can use
Code (fw): Select all Collapse
SENDKEY( VK_SNAPSHOT )

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
greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Google Chrome Pages as files
Posted: Fri Apr 22, 2022 07:34 AM

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 !

Continue the discussion