Screenshot program

I currently do have a working program that takes a screenshot of the cmd window when it runs. I now need to make it take a screenshot of a web page and have no idea how to do this. Just looking for some help on this topic. Thanks, this is what I have so far.

#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
keybd_event(VK_MENU, 0, 0, 0); //Alt Press
keybd_event(VK_SNAPSHOT, 0, 0, 0); //PrntScrn Press


keybd_event(VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0); //PrntScrn Release
keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0); //Alt Release

return 0;
}
Topic archived. No new replies allowed.