Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , , ,

Sponsored Links



Screen shot using JavaScript

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-12-2009
Member
 
Join Date: Nov 2009
Posts: 1,128
Screen shot using JavaScript

Hi,

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
Reply With Quote
  #2  
Old 03-12-2009
Eric B's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,645
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");
This code will capture the complete screen and save it to the other format. Hope that this will help you.

Thanks
Reply With Quote
  #3  
Old 03-12-2009
JonathanD's Avatar
Member
 
Join Date: May 2008
Posts: 4,325
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");
Reply With Quote
  #4  
Old 03-12-2009
Macarenas's Avatar
Member
 
Join Date: May 2008
Posts: 4,810
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Screen shot using JavaScript"
Thread Thread Starter Forum Replies Last Post
which is the best screen shot application for LG Revolution. Omarr Portable Devices 9 29-12-2011 07:17 AM
How to take Screen shot in HTC Desire? hostess Portable Devices 4 20-01-2011 11:45 AM
How to take screen shot in MS Word 2010? Craigg Windows Software 4 14-01-2010 05:15 PM
How do i take out screen shot of boot screen Dharmesh Arora Windows Software 5 15-04-2009 04:45 PM
How to I take a screen shot ? Arvind MS Office Support 4 07-03-2007 08:44 AM


All times are GMT +5.5. The time now is 04:10 AM.