GUIKit`
GUIKit`

GUIScreenShot

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

GUIScreenShot[interface]

generates a graphic that captures the current state of the runtime user interface.

Details and Options

  • To use GUIScreenShot, you first need to load GUIKit using Needs["GUIKit`"].
  • interface can be a GUIObject, a J/Link Java user interface object, an interface expression, or a name of a widget definition.
  • When the argument is a GUIObject, the state of the interface is captured and left unchanged.
  • When the argument is a widget definition expression, it is created, captured, and then closed.
  • When the argument is a widget, a screen shot is generated of only the requested widget, without the underlying native window.
  • When the argument consists of screen coordinates of the form {{xmin,xmax},{ymin,ymax}}, a rectangle from the current screen is captured.
  • When no arguments are given, the contents of the entire screen are captured.
  • GUIScreenShot is useful for creating previews of a definition within a notebook, documenting changes during the runtime of an interface, and also as an easy way of exchanging and submitting bug and problem reports to others.

Examples

open allclose all

Basic Examples  (1)

Run an interface definition:

Take a screen shot of the original interface:

Change the value and take another screen shot:

Take a screen shot of just a widget:

Capture a portion of the current screen:

Capture the entire screen:

Scope  (1)

GUIScreenShot works with any active user interface JavaObject produced by any J/Link code:

Wolfram Research (2007), GUIScreenShot, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html.

Text

Wolfram Research (2007), GUIScreenShot, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html.

CMS

Wolfram Language. 2007. "GUIScreenShot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html.

APA

Wolfram Language. (2007). GUIScreenShot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html

BibTeX

@misc{reference.wolfram_2024_guiscreenshot, author="Wolfram Research", title="{GUIScreenShot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_guiscreenshot, organization={Wolfram Research}, title={GUIScreenShot}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/GUIScreenShot.html}, note=[Accessed: 18-November-2024 ]}