Returns the identifier of a window.
sID = WindowName (wWindow)
Variable | Description |
---|---|
sID | The identifier of the window. STRING. |
wWindow | The window whose name you want. WINDOW. |
[ ] // 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