Results 1 to 11 of 11

Thread: take screenshot of specific window

  1. #1

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919

    take screenshot of specific window

    is there a way to take a ss of a specfic window at a certain interval? i just need the code to take a SS if i have the HWND of the window, any ideas?
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  2. #2
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    hmmmm ive seen this sort of thing done b4. It involved copying th window to the clipboard. (You can then save the clipboard to a file, clear the clipboard and repeat) Ill have a look around see if i can find the code
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  3. #3

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    oh alright, thanks alot

    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  4. #4
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    See if this helps for now til i find some others: http://support.microsoft.com/default...;en-us;q161299
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  5. #5
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  6. #6

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    hmm, interesting. so i can copy to a picture box,a nd somehow ill save it from the picture box to a jpg or something. ill play with the code in a bit, i have homework to finish now, ill let u know what happens

    then i just have to get the coordinates of the window i want, its on top by default anyway, that shouldnt be too much of a problem, I think

    thanks alot
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  7. #7
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Well the second link i gave you has code more or less complete. You will have to save as a bmp tho as u need the JPG library to save in Jpeg format which requires another dll and the info on how to use it. bmp is much easier altho the size of the resulting file is much greater. You could also tro saving as a PNG file. you can get some free code to do this from http://www.scottandmichelle.net/scot...mv?codenum=092
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  8. #8

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    i was thinking that ill just leave it as bmp, since its for personal use, ill just run it through a batch converter in fireworks once in a while to compress it. though the jpeg library shouldnt be too hard. thanks though
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  9. #9
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    yea but...

    yea but blobby, all i need to know is, if the comp the program is running on, doesnt have jpg libraries on it, will it save it successfully as a jpg?? or can i somehow include the library with the program without a seperate file.

    thanks,

  10. #10
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    Talking Cool

    thanks blobby!

    cool links, i havnt had a go to try these out yet, but i hope they work!

    i need to capture the entire screen and save it as a jpg in a folder.

    i was just wondering, if i got the jpg libraries, wud they need to be on the computer when the program captures the screen in run time?

    thanks,

  11. #11
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    If this link doesnt give u anymore information (it links straight to the Intel JPG library) just holler.
    http://dogma.net/markn/articles/IntelJpgLibrary/
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width