If Dial-Up Successful

*Command deprecated - See note below

 

 

The If Dial-up Successful feature tests if a dial-up networking attempt was successful or not. All commands following this statement until an ENDIF or ELSE command is reached are executed if the dial-up connection is successful. If the dial-up fails and an ELSE command is used, then all commands following the ELSE until an ENDIF is reached will be executed. By placing this inside a "Repeat Until" loop, this command will repeatedly attempt to dial until a successful connection is made.

 

Dial-up networking must be set up and configured in Windows in order to use this function. Use the Create a Dial-up Connection or Change Dial-up Settings options in Windows to do this. 

 

 

Script Editor > Expand Logic Category > If Dial-Up Successful

 

 

Phone Book Entries

The Phone Book Entries field displays a list of all the phone book entries created in Windows. If none are displayed, a phone book entry will first need to be created in Windows. Choose the dial up entry. 

 

User Name

Enter the user name for the account selected.

 

Password

Enter the password for the account selected.

 

 

Note: When selecting a phone book entry, most likely the User Name will be displayed without requiring manual entry. Depending on the security settings the password may also be inserted. The actual password is not shown. A series of asterisks are displayed in its place.

 

Example

This set of commands instructs the macro to keep trying to dial up and connect until successful. After connecting it loads the www.macros.com site.

 

We have instructed the macro to repeat until variable T[1] equals 1. If the dial up connection is successful, the variable T[1] is set to 1. This action ends the Repeat loop and loads the www.macros.com site. If the connection was not successful, the variable T[1] is set to 0 and the macro continues repeating until T[1] equals 1.

 

 

Sample Macro

 

Repeat Until %T[1]% = "1"

   If Dial-Up Successful: my modem

      Variable Set String %T[1]%"1"

   Else 

      Variable Set String %T[1]%"0"

   End If

Repeat End  

WebSite: https://www.macros.com

 

 

 


 

 

*Deprecated Commands

Some macro commands have been designated as deprecated. These commands may be infrequently used, use out of date terminology, or are no longer supported by newer versions of Windows. In some cases deprecated macro commands have been replaced by new ones.

 

Deprecated commands are still supported in existing macros for backward compatibility. However, they may be removed from Macro Express in the future. Where possible we recommend that you avoid the use of deprecated macro commands.

 

By default deprecated commands are not displayed or accessible from the list of commands in the Macro Express Editor. To allow adding deprecated commands to a macro enable the Show deprecated commands option found in Options, Preferences, General - Misc tab.