Livecode Wiki
Advertisement

Takes a snapshot of the current browser page.

Syntax:

revBrowserSnapshot <instanceId>, <variableName>

Examples:

local tSnapshot
revBrowserSnapshot sBrowserId, "tSnapshot"
set the imageData of image "Browser Thumbnail" to tSnapshot

The revBrowserSnapshot command takes a snapshot of the page currently being displayed in the specified browser object.

The variableName should be the name of a declared variable. This means that before calling revBrowserSnapshot a variable to place the image data into should be declared using the local command.

Parameters:

  • instanceId: The integer identifier of a browser object.
  • variableName: The name of a variable to place the resulting image data into.
  • The result: The revBrowserSnapshot command puts empty into the result.

See also: revBrowserClose (command),revBrowserSet (command),result (function),

Advertisement