Keyword: focusWin - Bring to front

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: focusWin - Bring to front

Unread post by YiMeng »

Description
  • Sets a window by its form title into focus, bring to front.
  • Sets the window as target for send key commands.
  • Includes a 200ms delay.

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

Usage
  • focusWin 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.