Macro to test computer is connected to Internet

Share your macros, knowledge, solutions, services, ...
Post Reply
Petr
Posts: 106
Joined: Tue Oct 18, 2016 1:12 pm

Macro to test computer is connected to Internet

Post by Petr » Fri Nov 25, 2016 1:12 pm

This macro shows how to test if the computer is connected to Internet.

Code: Select all

<#> Start of the macro
<cmds>

<#> Test of variable _vIsConnectedToInternet
<if_str>("_vIsConnectedToInternet==YES")

   <#> Yes, show message
   <msg>(-100,-100,"Computer is connected to internet.","Message",1)

<else>

   <#> No, show message
   <msg>(-100,-100,"Computer is NOT connected to internet.","Message",1)

<endif>

<#> End of the macro

Post Reply