GUIScreenShot

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

DetailsDetails

  • To use , 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 , a rectangle from the current screen is captured.
  • When no arguments are given, the contents of the entire screen are captured.
  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Run an interface definition:

In[2]:=
Click for copyable input
Out[2]=

Take a screen shot of the original interface:

In[3]:=
Click for copyable input
Out[3]=

Change the value and take another screen shot:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
Out[6]=

Take a screen shot of just a widget:

In[7]:=
Click for copyable input
Out[7]=

Capture a portion of the current screen:

In[8]:=
Click for copyable input
Out[8]=

Capture the entire screen:

In[9]:=
Click for copyable input