Hello experts i need help about screenshot code. i have two form ( Form1 & Form2 ) form1 have one button and picturebox. and form two is empty. i want to take screenshot with form width and Height. mean's where i move form2 and press Command1 button on form1 then it take a screenshot that area where is my form2. and save it in (c:/ drive) my form2 is moveable so i can move my form anywhere. Here i attached Example pictures. i am very thanksfull to you . Regard Razamughal

Member Avatar
Member Avatar
+0 forum 1

Hi, I am working on a personal vb.net project that will allow me to capture a full-sized image of a given web page. I've been working on this for a few of days and have not found a method that is 100% reliable. Here's what i have tried so far... [U]METHOD #1 - Using WebBrowser Control and CopyFromScreen[/U] Problem: Fails to capture the entire content of the page if part of it is off screen, obscured, or requires scrolling. [CODE] Private Sub btnCopyScreen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCopyScreen.Click Const ScrollbarWidth = 18 ' Initialize a new …

Member Avatar
Member Avatar
+1 forum 10

I want to save screenshot of any webpage using php. i search in google but i dont found any result for linux server. i got some window server result using imagegrabwindow() function. is their anotherway for linux server. i install one script with Class COM i which internet exp. open and take a screenshot. but how it will work in linux server thanks

Member Avatar
Member Avatar
+0 forum 21

Hi I would like my python script take screenshot of my desktop every 15 mints and saving in my home dir in pic folder.but I get error? import os import sys import time import ImageGrab environ=os.environ img = ImageGrab.grab() FILES_DIR = 'pic' SAVE_PATH = os.path.join(environ['HOMEDRIVE'], environ['HOMEPATH']) LOGFILE_NAME = 'test.png' LOGFILE_PATH = os.path.join(SAVE_PATH, FILES_DIR, LOGFILE_NAME) img.save(SAVE_PATH) //Traceback (most recent call last): File "C:\Users\linux\Desktop\screenshot1.py", line 11, in <module> img.save(SAVE_PATH) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1423, in save raise KeyError(ext) # unknown extension KeyError: ''//

Member Avatar
Member Avatar
+0 forum 12

Hi, I've created a small application that allows the user to capture the screenshot and save the image at a user defined location. It also allows the user to capture the screenshot of the active window as well. The issue is with the active window. I have learnt that Java does not provide a method to get the screenshot of the active window. So, I googled and found that developers have been using the Alt+PrntScrn to get the screenshot and get the image from the clipboard. The code for this is: robot.keyPress(KeyEvent.VK_ALT); robot.keyPress(KeyEvent.VK_PRINTSCREEN); robot.keyRelease(KeyEvent.VK_PRINTSCREEN); robot.keyRelease(KeyEvent.VK_ALT); Thread.sleep(1500); RenderedImage image = (RenderedImage)getClipboard(); …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to get a screenshot of the active window on the screen, for which unfortunately Java does not have an API. It allows me to capture the screenshot of the whole screen but not of the active window. Now, I did a bit of workaround but it is not working as expected. What I did was first press the Alt+PrntScrn keys using the robot class object. Then I get the contents from the clipboard and save the image to a file. The code is working fine, however it is not getting me the latest image. It gets …

Member Avatar
Member Avatar
+0 forum 2

I put a few solid days into finding a working method of capturing the screen and they either didn't compile or weren't quite what I was looking for. I am wondering if anybody has any example code to capture the screen every 10 seconds and save it to bmp. I don't want to save what's on a certain window or program but I want to save what I, the user sees on my screen. OS: Vista Compiler: Microsoft Visual Studio 2010 Express Any help would be great. And if any more information is needed, just ask.

Member Avatar
Member Avatar
+0 forum 2

Would it be possible to have a screen shot of another website in a panel. Like Iframe except not scrollable and nothing is click-able. Also the content is perhaps fitted to the frame. thanks

Member Avatar
Member Avatar
+0 forum 1

Hey guys, i hope you can help me, i have a problem. I found in the net a code for taking a screenshot. the code works well, but the quality of the outputet bmp file is not good. I have not enough skill to find the place where i can set the quality. So would you be so friendly and show me the place in code and set it to the best? Thanks for helping! Niine [CODE]inline int GetFilePointer(HANDLE FileHandle){ return SetFilePointer(FileHandle, 0, 0, FILE_CURRENT); } bool SaveBMPFile(char *filename, HBITMAP bitmap, HDC bitmapDC, int width, int height) { bool Success=0; …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore just those buttons. I'm trying to avoid restoring them all unless they were all originally visible. Please help. Here is the code I have so far: [CODE] Private Sub btnSavePDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSavePDF.Click Try If btnChange1.Visible = True Then btnChange1.Visible = False If btnChange2.Visible …

Member Avatar
Member Avatar
+0 forum 4

The End.