GetID Function

Class

AnyWin class.

Action

Returns the identifier of the window.

Syntax

sWinID = window.GetID()
Variable Description
sWinID The identifier of the window. STRING.

Notes

GetID returns the window’s GUI-specific internal identifier as a string.

For Windows, the ID of the main window is a string containing the full path of the EXE file that invoked it. For other windows, GetID returns a string containing an integer, the control ID.

For more information, refer to Silk Test Classic Agent Rules for Object Recognition. This document is located in (in Microsoft Windows 7) Start > Programs > Silk > Silk Test > Documentation > Silk Test Classic or (in Microsoft Windows 10) Start > Silk.

Example

STRING sWindowID = TextEditor.GetID()