Copyright: RoboDUN 0.60 by Mark Gamber,1995


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

There have been many changes made to RoboDUN since version 0.51. First and foremost, scripts have been moved to the registry and are not based on text files for security and operational reasons. To use your existing scripts, simply load them into Notepad, select and copy the script from Notepad to the RoboDUN script editor. You may want to keep the script files someplace safe in case the registry is corrupted or deleted. It is, after all, still a beta system.

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

Many dial-up resources such as internet providers require a "clear text" login. This requires you to request a post-dial terminal screen to enter your user name, password and possibly other information in order to log into the system. SLIP further complicates the matter by also requiring you to wait for an IP address from the server and provide the address when prompted by Windows. RoboDUN (Robotic Dial-Up Networking, if you will) eliminates all that by running a script for a given connection, the script guiding the connection automatically.

RoboDUN is divided into three parts. ROBODUN.EXE and RDUNDLL.DLL are the "daemon" half of the program. This program and related library are what waits for a connection attempt and control the script playback when needed. By adding ROBODUN.EXE to your StartUp folder or group, you have automatic scripting up entering Windows without having to start it manually. RDUN32.EXE is the "RoboDUN Manager", what you interact with. This program may be started like any other Windows program and does not require ROBODUN.EXE to run, although it can also be started by double-clicking the "Telephone" icon in the tray, indicating ROBODUN.EXE is running.

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

RoboDUN script management is supplied by the RoboDUN Manager, RDUN32.EXE. The program may be started at any time and does not require RoboDUN. Start the program like any other Windows program or, if RoboDUN is running and a small "Telephone" icon is visible in the tray, double-click that icon to start the RoboDUN Manager. The program supports a single command line parameter, "close". If this parameter is specified and RoboDUN is running, RoboDUN Manager closes it and itself. This can be used to create a shortcut meant to simply close RoboDUN (rdun32 close).

All available Dial-Up connections are listed by the Manager. A checkbox is displayed to the left of connections with attached scripts. Double-click an item or select an item and select the "Edit" button to edit a script or select "Remove"  to remove any script that may be attached to the connection. The script (if any) will appear in an edit window. When the manager is running, scripts may also be enabled and disabled by selecting an entry and selecting the " Enable/Disable"  button or toggling the checkbox to the items left on and off. When checked, the script is active. When unchecked, the script is inactive and manual login is required. If the RoboDUN Manager is not running, all scripts are active.

RoboDUN indicates call and script status by changing it's icon green whan a call is started and red when the script is running. If you have your scripts working correctly and don't need or want to see the status window, uncheck the "Script Output Window"  checkbox.

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

RoboDUN justifies it's existance through the playback of user written scripts to automate dial-up networking. A script is nothing more than a command list defining the flow of the login procedure using commands supported by RoboDUN. Select a dial-up entry and select "Edit" (or double-click the item) to start the script editor. Scripts are kept in the registry itself for security and uninstall purposes and may not be directly edited with a text editor such as notepad. You may press the F1 key at any time within the script editor for online help.

Example scripts are included in this help file and demonstrate a PPP, SLIP and Compuserve login. These are simply examples of common login procedures and will not work as-is if pasted into a RoboDUN script window. The user name, password and prompts must be changed before attempting to use the script.

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


PPP Login Script Example

# PPP login script

# Send CR/LF to get the ball rolling

Send ""

# Wait 10 seconds for "NetLogin:" prompt

WaitFor "ogin:", 10

# Send user name in response to "NetLogin:"

Send   "username<cr>"

# Wait 10 second for "Password:" prompt

WaitFor "assword:", 10

# Send password in response to prompt

Send   "password<cr>"

# Wait for "Service Ready>" prompt

WaitFor "eady", 10

# Specify service...PPP in this case

Send "PPP<cr>"

Done


SLIP Login Script Example

# SLIP login script

# Send CR/LF to get the ball rolling

send ""

# Wait 10 seconds for "NetLogin:" prompt

WaitFor "ogin:", 10

# Send user name in response to "NetLogin:"

Send  "username<cr>"

# Wait 10 second for "Password:" prompt

WaitFor "assword:", 10

# Send password in response to prompt

Send    "password<cr>"

# Wait for "Service Ready>" prompt

WaitFor "eady", 10

# Specify service...SLIP in this case

Send "SLIP<cr>"

# Get SLIP address and exit

GetSlip 1

end


Compuserve Login Script Example

# Compuserve login script

# Specify 7 bit operation (required for CIS)

7bit

# Kick off the game with a Ctrl-C

Send "<ctrlc>"

# Wait 90 seconds for "User ID:" prompt

WaitFor "User ID:", 90

# send ID and service type

Send "00000,0000/go:pppconnect<cr>"

# Wait 20 seconds for password prompt

WaitFor "Password:", 20

# Send Compuserve password and quit

Send "pass.word<cr>"

Done


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>" 	examples

The Send command sends text to the server through the dial-up terminal screen, fooling everything into thinking you're actually typing it manually. All text must be contained within double-quotes and an optional "<cr>" is used to "press Enter" in a line of text. "Escape"  may be sent using a "<esc>" and "Ctrl-C"  may be sent using "<ctrlc>". A carriage return / line feed is not automatically sent at the end of a line.

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time	examples

WaitFor stops script execution until the text specified between double-quotes is received in the post-dial terminal screen. At that time, script execution is continued. If a time specified in seconds is added to the command, the command will give up after that many seconds. If no time is specified, 30 seconds is used as a default.

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time	examples

Pause stops script execution for an amount of time specified in seconds.

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

Done ends a script written for a PPP connection. Strictly speaking, the Done command ends the script and "presses F7" on the post-dial terminal window, continuing the login procedure. If you are using SLIP, use the End command instead.

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num	examples

GetSlip is used for a SLIP login where the server returns an IP address you then supply to the IP Address dialog box. GetSlip will wait until an IP number is returned, close the post-dial window and, when the IP Address dialog box opens, enter the IP address and "OK" the dialog box, continuing the login procedure. Because of the difference between SLIP and PPP, any script using this command should stop using the End command instead of the Done command. An optional number may be added to this command if more than one SLIP address may be displayed at a time. For example, if the line returned from the server is "Login from 123.123.123.0 to 123.123.123.12" and the second number is the one you really want to use, you would specify "GetSlip 2" to use the second full IP address it finds. Note that it may be advantageous to add a Pause before GetSlip is used as many servers take some time before returning an address. If you find this fails or times out often, use a pause of several seconds before GetSlip.

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z	examples

UseSlip "presses F7"  on the post-dial window and enters a fixed IP address into the IP Address dialog box, "pressing OK" when done to continue the login process. A script which uses this command should quit using the End command instead of Done since the SLIP ends differently than PPP.

      End

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

End stops the script without doing any other processing. This differs from the Done command in that Done "presses F7" while End does not. This is for SLIP connections.

      Silent

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

7Bit causes RoboDUN to strip the high bit from all incoming characters before doing anything else with them. This is useful when the connection must be treated as 7 bit such as Compuserves PPP interface. Note that the actual physical connection is not altered in any way.

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

      7Bit

      8Bit

8Bit specifies that RoboDUN should use all 8 bits in a character and not strip the high bit. This mode of operation is the default and is not required for initial 8 bit operation. If the 7Bit command is used in a script and operation needs to resume at a later point in 8 bit mode, this command will specify which mode to use when.

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

      Send "text<cr>"

      WaitFor "text" , time

      Pause time

      Done

      GetSlip num

      UseSlip w.x.y.z

      End

      Silent

The Silent command toggles status window output on and off. Initially on (text displayed), it is turned off (no text displayed) the first time it is used, turned back on (text displayed) the second time used within the same script and so on. Useful for hiding user names, passwords and other sensitive information during login.

      7Bit

      8Bit

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN


Send Examples

# Send a line of text and "press enter"

Send "user name<cr>"

# Send a line of text without a CR/LF

Send "This is line one"

# Send a CR/LF, nothing else

Send ""


WaitFor Examples

# Wait up to 10 seconds for login prompt

WaitFor "ogin:", 10

# Wait up to 30 seconds for "ready" prompt

WaitFor "Ready"


Pause Examples

# Stop for 5 seconds...let server breathe

Pause 5


GetSlip Examples

# Get first SLIP address that comes along

GetSlip

# Get third SLIP in text window

GetSlip 3


UseSlip Examples

# Use this IP number when logging in

UseSlip 123.123.123.17


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

A number of problems may arise during the user of this program. When approaching a login problem, disable the script using the RoboDUN Manager and make sure you can log in manually. Make sure the script prompts are correct and the user name, password and any other required information are correct. A common problem is with timing, especially when SLIP is specified. If you are having problems finding the SLIP address, try adding a Pause 30 before the GetSlip command. If logging onto Compuserve, start the script with the "7bit" command.

Non-English versions of Windows 95 will not work with RoboDUN initially, but a fix is available. I dont claim to know how it works, but it has definately worked with the French and German versions of Windows 95. Many, many thanks to Fritz for this email. The included email instructions are specifically for the French version, but may work with other languages when modified appropriately.

  RoboDUN Registry Settings

  About RoboDUN


Non-English Windows 95 modification for RoboDUN

(From an email where the version in question was French. Modify appropriately)

Now a strange story concerning the post dial terminal screen:

1. using the english version dial up screen still worked ok, with RoboDUN 0.60.

2. after reinstalling the french after dial terminal screen, RoboDUN did not see the after dial terminal screen, in spite of modifying the registry strings to the french localized versions. to be precise: when dialing, the telephone icon became green, but did not turn into red when it should. I just saw a black post dial teminal screen.

3. using Visual Basic, I used to FindWindow function to try out whether it would find the window of the post dial terminal screen, using its caption (the value of PostDialScreen1, see below). the FindWindow(0&, "....") function found it.

4. alerted by your unicode translation remark, I installed (control panel, keyboard icon) the English (US) language. from then on, RoboDUN worked ok, and detected my french post dial terminal screen.

5. I deleted the English (US) language (control panel), and RoboDUN still works.

so, to summarize:

RoboDUN works on my french M8 Win95, with the following registry settings:

PostDialScreen1="Ecran terminal de post-numerota" (the last 'e' being ascii(233), smtp mail wont do this...)

PostDialScreen2="Mode Terminal"

for other localized versions: these strings are visible in windows\system\unimdm.tsp, using a file view utility.

it was necesserary to go through this language strory. maybe my system was in a strange state; it was upgraded from M7.


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

A number of parameters are kept in the Windows registry. These entries are described as follows:

Key: HKEY_CURRENT_USER\Software\MarkG\RoboDUN

Connection names and their related script files are kept in this subkey. You may add, delete and change the settings, but RoboDUN will not pick up the changes if running.

Key: HKEY_CURRENT_USER\Software\MarkG\RoboDUN\Windows

Xpos: Initial horizontal screen position used to display RoboDUN Manager.

Ypos: Initial vertical screen position used to display RoboDUN Manager.

EditXpos: Initial horizontal position of script editor.

EditYpos: Initial vertical position of script editor.

EditXsize: Initial horizontal size of script editor.

EditYsize: Initial vertical size of script editor.

PostDialScreen1: Terminal window title. Default: "Post-Dial Terminal Screen"

PostDialScreen2: Terminal window title. Default: "Terminal Mode"

IPAddress: SLIP IP Address window title. Default: "SLIP Connection IP Address"

CommentChar: Character used to being comment lines. Default is '#' .

TrayMsg: Message which appears in the tooltip for the "telephone icon".

Note: PostDialScreen1 and PostDialScreen2 may be changed to reflect changes in the Post-Dial terminal screen caused by localization. Enter the string displayed by the Post-Dial Terminal Screen in the first entry (PostDialScreen1) and the language translation for "Terminal Mode"  in the second entry (PostDialScreen2). The "Terminal Mode" window, unfortunately, is never seen so verification of this string is impossible. "IPAddress" may also be altered to reflect any changes in the title of that window. Simply use the Registry Editor to change these strings to those displayed by the window itself.

  About RoboDUN


RoboDUN: V0.61 Dial-Up Networking Script Utility

By Mark Gamber, May 5, 1995, for Windows 95

  Important!

  What is RoboDUN?

  RoboDUN Manager

  RoboDUN Scripts

  RoboDUN Commands

  Troubleshooting

  RoboDUN Registry Settings

  About RoboDUN

This is version 0.61 of RoboDUN by Mark Gamber for Windows 95. This program will not run under any other version of Windows. RoboDUN is barely supported software and may be freely distributed as a package. The contents of "the package" (compressed file) may not be broken up or added to, nor may any of the contents of the package be altered in any way without expressed permission from the author. The program is not public domain and remains the property of the author.

Many thanks for the efforts, ideas and reports received by many people, without whom this program would suck. I absolutely will not accept payment in any form for this program, so if you want to contribute something, send a few bucks to your local volunteer fire department or your favorite charity organization. I can guarantee they need it far more than I and, if youre reading this, probably you too.

By using RoboDUN, the user assumes full responsibility for it's use and may not hold the author liable for any loss or damage. If unable to accept these conditions, the program may not be redistributed or used and must be destroyed immediately.


INet: markga@epix.net

CIS: 76450,2754