|
| ||||||||||
| Tags: activescreen, activex, copyfromscreen, graphics, javascript, net, png, screen |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Screen shot using JavaScript
I am having a problem with the coding of the .NET programming language using the JavaScript. I am working on the project that will take the screen shot of the screen's particular area using the JavaScript, but i am unable to do so. For making my project working i used Graphics.CopyFromScreen functionality of the .NET, but could not find to the result. Thank you |
|
#2
| ||||
| ||||
| Re: Screen shot using JavaScript
What i got from the description is that you are interested in taking the shot of the screen's particular area using the JavaScript.For that i will suggest you to use ActiveX control which is known as the ActiveScreen for capturing the particular screen area. Here is the code for the same. Code: var as=new ActiveXObject("ActiveScreen.Capturer");
as.CaptureScreen();
var fs=as.SaveToFile("Screenshot1.jpg");
WScript.Echo("Size of the image = " + fs.toString() + "\r"); Thanks |
|
#3
| ||||
| ||||
| Re: Screen shot using JavaScript
Hi there, I am having the same problem regarding the capturing of the screen's area and searched a lot and finally got the answer. Hope that the solution which i got might be help you also so try your luck for the same. The code will capture the particular area of the screen defined by the user. Use this to resolve your issue. This will save the file in the .png format The code is given below: Code: var as=new ActiveXObject("ActiveScreen.Capturer");
as.CaptureOval(100,50, 400);
var fs=as.SaveToFile("Capture.png");
WScript.Echo("Size = " + fs.toString() + "\n"); |
|
#4
| ||||
| ||||
| Re: Screen shot using JavaScript
Hello, I hope this will disappoint you that it can not be possible with the JavaScript because JavaScript can not uses binary stream. If you want to make rendering tests then you use instantiating the target browsers with the host environment. Thats all i know about the screen shot taking process. So i am hoping that this will you to finalize your project. Thanks ![]() |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Screen shot using JavaScript" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is it possible to take a screen shot of virtual machines while being in OS X | Mr.Ghost | Windows Software | 6 | 05-02-2012 03:44 PM |
| How to take a screen shot in Samsung focus s 4G | K@ttY | Portable Devices | 4 | 22-01-2012 08:40 AM |
| How to take Screen shot in HTC Desire? | hostess | Portable Devices | 4 | 20-01-2011 10:45 AM |
| How to take screen shot in MS Word 2010? | Craigg | Windows Software | 4 | 14-01-2010 04:15 PM |
| How do i take out screen shot of boot screen | Dharmesh Arora | Windows Software | 5 | 15-04-2009 03:45 PM |