DocsNetworkNetwork Watcher

Detect Internet outages and react automatically in RunMacro

RunMacro RunnerRunMacro 3.5+

The Network Watcher command checks the Internet in the background while a macro runs and, on an outage, stops, pauses, changes IP via DCOM, runs a handler macro, or jumps to a label.

Dialog & quick setup

RunMacro Network Watcher command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Network Watcher command in RunMacro.
  1. Add a Network › Network Watcher command.
  2. Pick the action under When the Internet drops.
  3. If you picked Change IP via DCOM, also pick the DCOM network.
  4. Set the check interval and consecutive failures. Save.
  5. Put the steps you want protected between this command and End If.

Options reference

When the Internet drops

Stop, Pause, Change IP via DCOM, Run a handler macro, or Go to label.

DCOM network

Shown only for Change IP via DCOM. Same Dial-up/Cellular list as the DCOM / Change IP command.

Check interval

Time between checks. Each check is a background ping.

Consecutive failures

How many failures in a row count as an outage. Default 10. 1 is the most sensitive but can fire on a single dropped packet.

IP change retries

Retries when changing IP. Default ∞ (unlimited): keep trying until the connection is back.

Modes & when to use

RunMacro Runner

Best for

  • Long runs that should rotate IP as soon as the link drops.
  • Stop a macro instead of letting it continue on failed data.
  • Recover a DCOM/3G/4G connection without watching it yourself.

Use an alternative when

  • Do not use it to notify an external service during an outage, since Telegram/HTTP cannot send either.
Before you run
  • Add Network Watcher and End If to the macro.
  • For the IP change action: a configured DCOM/mobile network device.

Example workflow

Example: change IP on outage, then continue

  1. Network Watcher, action = Change IP via DCOM, pick the cellular network.
  2. Interval 30s, consecutive failures = 10 (the default).
  3. Put the main steps between this command and End If.
Expected result: Once running, Network Watcher guards the connection for the whole block and performs the chosen action on an outage.

Tips & limitations

The check runs in the background, so it does not slow the macro; the interval only sets how often it looks.
The Change IP via DCOM action needs a DCOM/mobile device and is unavailable in the Microsoft Store edition.
  • It detects loss of Internet access only, not slow links or per-site DNS failures.
  • It pings 8.8.8.8/1.1.1.1 then tries a public-IP lookup; a network blocking both may read as offline.

Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.