FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Save Desktop into a
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Save Desktop into a
Posted: Fri Mar 03, 2023 09:12 AM

Hi to all,

if I remember correctly some time ago someone posts a function that save info a file the image of entire desktop.

I also remember that I test it locally but I dont't remember a key word to find it on my pc

I little help?

Many thanks

Marco Boschi
info@marcoboschi.it
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Save Desktop into a
Posted: Fri Mar 03, 2023 09:45 AM

FW_SaveImage(hBmp, "my.bmp") or SaveWindow(hBmp, "my.bmp", width, height)

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Save Desktop into a file
Posted: Fri Mar 03, 2023 09:57 AM

Many thanks

my goal is to obtain every hour the screenshot of a program that is always in execution in a pc

Marco

Marco Boschi
info@marcoboschi.it
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Save Desktop into a
Posted: Fri Mar 03, 2023 07:35 PM

Use DEFINE TIMER and call previous function

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Save Desktop into a
Posted: Sat Mar 04, 2023 09:25 AM
8)
Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Save Desktop into a file
Posted: Mon Mar 06, 2023 09:08 AM

Ok it works!

Next question is:

is it possible to save into a different file's type (such as png or jpg)

Many thanks

Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Save Desktop into a
Posted: Mon Mar 06, 2023 09:37 AM

Dear Marco,

FW_SaveImage() supports all these extensions automatically:

local aExt := { "bmp", "jpeg", "gif", "tiff", "png", "bmp", "jpg", "gif", "tif", "png" }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Save Desktop into a
Posted: Thu Mar 16, 2023 12:40 PM
8)
Marco Boschi
info@marcoboschi.it

Continue the discussion