WindowName Function

Action

Returns the identifier of a window.

Syntax

sID = WindowName (wWindow)
Variable Description
sID The identifier of the window. STRING.
wWindow The window whose name you want. WINDOW.

Example

[ ] // in declarations
[-] window MainWin TextEditor
	[ ] tag "Text Editor - *" 
[ ] testcase WindowNameExample ()
[ ] // in script 
[ ] WINDOW wWnd 
[ ] //... 
[ ] wWnd = Desktop.GetActive () // assume TextEditor is active 
[ ] Print (WindowName (wWnd)) // prints: TextEditor