C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-28-2002, 09:43 PM   #1
Unregistered
Guest
 
Posts: n/a
Is it possible.....

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.
  Reply With Quote
Old 02-28-2002, 11:34 PM   #2
Registered User
 
rohit's Avatar
 
Join Date: Feb 2002
Posts: 69
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
rohit is offline   Reply With Quote
Old 03-01-2002, 10:24 PM   #3
Unregistered
Guest
 
Posts: n/a
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!
  Reply With Quote
Old 03-02-2002, 10:17 PM   #4
Registered User
 
rohit's Avatar
 
Join Date: Feb 2002
Posts: 69
it's .png not .bmp it's quite smaller and moreover rtfm for more options

cheers
Rohit
rohit is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22