hm_windowtoclipboard

Capture a rectangular area of the screen and save it to the clipboard.

Syntax

hm_windowtoclipboard x y width height

Type

HyperMesh Tcl GUI

Description

This command saves to the clipboard the rectangular window area specified by you.

This command is only available and supported on Windows.

Inputs

x
The upper left window corner x-coordinate. This is relative to the root window.
y
The upper left window corner y-coordinate. This is relative to the root window.
width
The width of the window in pixels.
height
The height of the window in pixels.

Example

To get the modeling window coordinates and copy the modeling window to the clipboard:

foreach {x y w h} [hm_getgraphicsarea] {}
hm_windowtoclipboard $x $y $w $h

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

9.0