2

I need to create a script for greasemonkey/scriptish/etc which would do some actions and at the end of script I need to capture a result screen.

How can I take screenshot via script?

Anton
  • 56
  • 3
  • 6

1 Answers1

4

As Greasemonkey and Scriptish are basically just executing Javascript, you need to search a workaround which uses this language.

The solution is to use HTML5 Canvas, and this can be easily achieved using libraries like html2canvas.

This question may help you too.

Community
  • 1
  • 1
Delgan
  • 18,571
  • 11
  • 90
  • 141