docs

Home All functions Categories

vuWindow2BmpEx(hWindow, BMPFile)

vuWindow2BmpEx(LONG,*CSTRING), Signed

Description

Saves any window as a bitmap file, given its window handle.

Parameters

Parameter Data Type Description
hWindow LONG Handle of the window to save (use functions like vuWindowHandle).
BMPFile CSTRING(128) Fully qualified path and filename for the bitmap file to be created.

Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.

Returns

A BYTE value:

Example

WindowName = 'Microsoft'
BMPName    = 'BillG.bmp'
hWindow    = vuWindowHandle(WindowName)

IF vuWindow2BmpEx(hWindow, BMPName)
  MESSAGE('Saved window "' & WindowName & '" to ' & BMPName)
ELSE
  MESSAGE('Failed to save window to bitmap file')
END

Notes

Home All functions Categories