Thread: Is it possible.....

  1. #1
    Unregistered
    Guest

    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.

  2. #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

  3. #3
    Unregistered
    Guest
    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!

  4. #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

Popular pages Recent additions subscribe to a feed