Save Desktop into a

Save Desktop into a

Postby MarcoBoschi » Fri Mar 03, 2023 9: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
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Save Desktop into a

Postby Natter » Fri Mar 03, 2023 9:45 am

FW_SaveImage(hBmp, "my.bmp") or SaveWindow(hBmp, "my.bmp", width, height)
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Save Desktop into a file

Postby MarcoBoschi » Fri Mar 03, 2023 9: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
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Save Desktop into a

Postby cnavarro » Fri Mar 03, 2023 7: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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Save Desktop into a

Postby MarcoBoschi » Sat Mar 04, 2023 9:25 am

8)
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Save Desktop into a file

Postby MarcoBoschi » Mon Mar 06, 2023 9: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
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Save Desktop into a

Postby Antonio Linares » Mon Mar 06, 2023 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Save Desktop into a

Postby MarcoBoschi » Thu Mar 16, 2023 12:40 pm

8)
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 26 guests