SETFOCUS
— Give focus to the
specified window.
Syntax:
SETFOCUS
/C:
class /Q "
title"
/C: class | the window class name |
/Q | quietly |
title | the caption of the window to focus |
The title and class names may contain wildcards. If no title or class is specified, TCC will be given the focus.
Note that the title must be the last option on the command line.
Under some versions of Windows, “stealing” the focus from another window is subject to privilege levels. You may not be able to move the focus away from an administrative window such as the Registry Editor unless TCC is also running with administrative privileges.