Page 1 of 1

Save Desktop into a

PostPosted: Fri Mar 03, 2023 9:12 am
by MarcoBoschi
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

Re: Save Desktop into a

PostPosted: Fri Mar 03, 2023 9:45 am
by Natter
FW_SaveImage(hBmp, "my.bmp") or SaveWindow(hBmp, "my.bmp", width, height)

Re: Save Desktop into a file

PostPosted: Fri Mar 03, 2023 9:57 am
by MarcoBoschi
Many thanks
my goal is to obtain every hour the screenshot of a program that is always in execution in a pc
Marco

Re: Save Desktop into a

PostPosted: Fri Mar 03, 2023 7:35 pm
by cnavarro
Use DEFINE TIMER and call previous function

Re: Save Desktop into a

PostPosted: Sat Mar 04, 2023 9:25 am
by MarcoBoschi
8)

Re: Save Desktop into a file

PostPosted: Mon Mar 06, 2023 9:08 am
by MarcoBoschi
Ok it works!
Next question is:

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

Many thanks

Re: Save Desktop into a

PostPosted: Mon Mar 06, 2023 9:37 am
by Antonio Linares
Dear Marco,

FW_SaveImage() supports all these extensions automatically:

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

Re: Save Desktop into a

PostPosted: Thu Mar 16, 2023 12:40 pm
by MarcoBoschi
8)