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?
Printable View
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?
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
oh alright, thanks alot
:)
See if this helps for now til i find some others: http://support.microsoft.com/default...;en-us;q161299
OK this looks more promising: http://www.mvps.org/vbnet/index.html...screenvars.htm
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 :)
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
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
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,
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,
If this link doesnt give u anymore information (it links straight to the Intel JPG library) just holler.
http://dogma.net/markn/articles/IntelJpgLibrary/