Keyword: setWin - Set 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: setWin - Set window

Unread post by YiMeng »

Description
  • Set a window by specifying its title to be targeted for send keys.
  • Using focusWin automatically sets the specified window as target as well.

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

Usage
  • setWin 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 will be on standby until a match is found.