Skip to main content


Command Description

Get window class name

Command Prototype

sRet = Window.GetClass(objUiElement)

Parameter Description

objUiElementTruedecorator@ui""Corresponding window object; when passed as an integer, it is used as a window handle; when passed as a string, it is used as a window feature to find all matched window to operate; when passed as a UiElement object, operate the window containing it


sRet,The variable used to save the output of the command.


TracePrint "--------------------Get window class name--------------------" 
// --------------------------------------------------------
// [Remarks] Get the window class name, this Demo uses IE to open Baidu
// Input parameters:
// objUiElement--target element

// Output parameters:
// sRet--The variable to which the output of the function call is saved

// Command prototype: sRet = Window.GetClass(objUiElement)
// --------------------------------------------------------

sRet = Window.GetClass(@ui"window_Baidu, you will know-user configuration 1-MicrosoftEdge8")
TracePrint (sRet)