Keyword: closeWin - Close window

Keywords are used within scripts that enabled powerful features such as dynamic variables, clipboard manipulation, read/write files, mimic inputs and more.
User avatar
YiMeng
Author
Posts: 235
Joined: Sat Jul 18, 2020 10:58 pm
Location: NY
Contact:

Keyword: closeWin - Close window

Unread post by YiMeng »

Description
  • Close a window by specifying its title.

Parameters
  • x: The text of a window title
  • Space within parameter is allowed
  • A trailing "*" on the parameter is allowed

Usage
  • closeWin x

On Error
  • If multiple windows are found to match the parameter, the first window with the match title will be set into focus.
  • If no match is found, command is ignored.