Macro Toolworks and Perfect Keyboard Forums • Macro to test computer is connected to Internet
Page 1 of 1

Macro to test computer is connected to Internet

Posted: Fri Nov 25, 2016 1:12 pm
by Petr
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