If Online

 

The If Online command tests if there is a connection to the Internet.  

 

There is not a program window associated with this command. The If Online command is inserted directly into the script. In the Script Editor, click on the Logic command category to expand the list and locate the If Online command.

 

 

Example

This macro simply loads the web site www.macros.com if connected to the Internet. If not, the macro will dial, connect to the Internet and open the web page.

 

 

Sample Macro

 

If Online

  Web Site, "https://www.macros.com", using Default Web Browser

Else

  Dial-Up Networking: My Modem

  Web Site, "https://www.macros.com", using Default Web Browser

End If