Is it possible..... [Archive] - C Board

PDA

View Full Version : Is it possible.....


Unregistered
02-28-2002, 09:43 PM
I wish to make a program that takes a screen shot every 20-30 seconds and save the file in a certian directory constantly replacing the last screen shot.

This is meant as a test for a web page where each time the person loads my screen shot it will be in real time and show what I am doing.
I know this has been done quite easily in scripting but I was wondering if somene can give me some hints for c or c++, to take a screen shot from the console is import command but I need to still heck that out.

rohit
02-28-2002, 11:34 PM
a simple hack would be like


try import
in your program try this

system("import window /filename.png");
or exec see the manual for more


cheers

Unregistered
03-01-2002, 10:24 PM
just another questions those screenshots are *.bmp correct? so how are you going to make them smaller and into *.jpg?

my screenshiots on this box are huge! 2.5 mb bitmaps!

rohit
03-02-2002, 10:17 PM
it's .png not .bmp it's quite smaller and moreover rtfm for more options

cheers :D
Rohit