Window Actions

Shows, closes, activates, resizes, moves a specified window.


  • Which window Specifies a window to be manipulated. Please see the "Which Window"

  • Action Specifies an action that should be applied to the window. The action can be one of the following:

    • Activate
      Shows the window and brings it to the front.

    • Close
      Sends a request to the windows for closing.

    • Move
      Changes the position of the specified window.

    • Hide
      Hides the window and activates another window.

    • Show
      Activates the window and displays it in its current size and position.

    • Topmost
      Places the window to above all windows.

    • Cancel topmost
      Places the window to behind all topmost windows.

    • Resize
      Changes the dimensions of the specified window.

    • Maximized
      Activates the window and displays it as a maximized window.

    • Minimized
      Activates the window and displays it as a minimized window.

    • Restore
      Activates and displays the window. If the window is minimized or maximized, it will be restored to its original size and position.

    • Opacity
      Sets the window transparent level (0-255), the value 0 will hide the window.

    • Find window
      Searches for a window and return the handle value of the matched window.

  • Return window's handle into Specifies a variable for receiving the handle of the window, the window handle can be used in sequent actions for another purpose.

  • Center window Specifies whether to move the window to the center of the current display.

  • Wait for X second after executing this action Specifies whether to wait for a moment after executing the specified window action. Some window actions would cause a refresh of the content in the window, and it may causes subsequent steps work wrong. You can specify a short time period to wait for the refresh complete. In a general case, two seconds is enough.

  • Wait for window to be existed Likes the action "Wait for Window", the player will pause execution of the macro until the specified window is existed or time is out.

  • Notes:

    The handle of the window is a number that uniquely identifies a window in windows.