Function WinActivate

  • Activates a window.

    Parameters

    • windowTitle: string

      The title of the window to activate.

    • windowText: string = ''

      Optional text found in the window.

    Returns number

    1 if successful, 0 otherwise.

    import { WinActivate } from '@ahmic/autoit-js';

    WinActivate('Untitled - Notepad');