I want to know how to write Simple C or C++ program to capture entire desktop image for every 1 min
I want to know how to write Simple C or C++ program to capture entire desktop image for every 1 min
Hmm... you ask about how to change keypresses to result in something else, then you ask about desktop screenshots to be taken periodically. What are you up to, really? Don't tell me that it is just knowledge, please.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Actually my intention is to capture desktop. remember in the other thread I asked key 'n' should be pressed when I press 'a' and I want to replace key 'n' with 'PrtScrn' because in my keyboard 'PrtScrn' key is not working.
So the thread 'change keypresses' is my another idea of desktop capture.
So please if you can help me, help me.
I already gave you AutoIt as a suggestion. Here's another suggestion: change to a working keyboard.Originally Posted by Yaswanth
Maybe I'm just being overly suspicious of a new member, but the "every 1 min" sounds like you are up to no good, and coupled with the fact that you were asking about the keypress thing "for knowledge" when you could have said up front that you wanted to rebind another key to your print screen key because it was not working...
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Sorry and I am not upto anything. usually I use fraps to capture screenshots and I capture while playing multiplayer games like AC series. so capturing periodical screenshots is good and i can achieve it by using fraps.
But then I got the idea of writing my own program and curious to see how much I can do.
So you really weren't talking about changing the output of a console program then. You're talking about wanting to rewire the keyboard at the driver level. Something that would be sufficient for say a keyboard logger.
Futhermore, simply pressing the print-screen key doesn't get you a file saved on disk, so I'm guessing that the next thing you'll ask is how to save the image. Something that would be sufficient for a screen logger.
Lemme guess, you next want to know how to send files across the internet to another computer.
Yeah I don't think I'm going to be helping you. If this was for legitimate purposes then that's unfortunate. You'll have to find someone a bit more gullible, erm I mean trusting.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Well if you don't want to help that's ok.
If I want that kind of thing I can easily use the existing tools to do that but not waiting hours and refreshing pages to find the answer that I am waiting for.
If you don't want to help fine there is no need to post a full size paragraph telling that you don't want to help.
Someone who wanted to learn would not find this a waste of time. The more you know about types of people, the better a scheme you will plan.If I want that kind of thing I can easily use the existing tools to do that but not waiting hours and refreshing pages to find the answer that I am waiting for.
It's not something that can be accomplished with standard C or C++, since they don't have that functionality. How you'll do it depends on your platform as well as the libraries you have installed. I suggest actually learning one of the aforementioned languages before trying to accomplish what you're attempting.
Alternatively, if you're using a unix-like system, a far simpler option would be to write a script using a language like Bash. What you're asking for is really just a combination of two programs:
• A program that will delay for 1 minute (like sleep.)
• A program that will capture a desktop image (like scrot.)