When Event Occurs

  1. Safari creates a window.

Match Application

AND
  1. The application from Window Created is Safari

Move Pointer and Click

  1. Move the pointer to 50% × 50% in window
  2. Single-click the left mouse button

Click a position in a newly created window

Use this Rule for an application window whose useful control appears in a stable position. It moves the pointer relative to the window reported by the Trigger and performs a click there, reducing a repeated manual pointer movement.

When: The selected application creates a window. If: The event’s application matches the configured app. Do: Move the pointer to the selected window-relative position, then click the current pointer location. The sample uses Safari, a 50% horizontal and 50% vertical position, and a single left click without modifiers.

Configure and try it

  1. Import with Open this Rule in Rulr and select the application in both the Trigger and application Condition.
  2. Review Move Mouse. Keep its window source connected to the Trigger’s Window Variable, then choose the percentage or coordinate position for your intended control.
  3. Review the mouse button, click type, and modifiers in Click Mouse. Grant Accessibility access for window events and mouse control.
  4. Test by opening a disposable window with a harmless target. Watch the pointer movement and resulting click before enabling the routine for normal work.

Before adapting this sample, compare its Window Created Trigger and Input Actions with the control you intend to click. If you ask AI Builder to change the target, follow the review and testing walkthrough and recheck the coordinates in the actual application; a generated change does not establish that the control is ready.

Requirements and limits

The window-created Trigger and mouse Actions require Rulr Pro. Window detection depends on the application exposing a standard accessible window.

A coordinate points to a location, not a named button. Different window sizes, toolbars, loading states, or interface changes can place another control under it. The sample has no delay or readiness check before clicking. Recheck the target after app updates. For sending an application’s keyboard shortcut after launch, see Press Keys When an App Launches.