home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1996 February / IMM0296.ISO / direct / qsockpro.qip / VENTUREN.MPS < prev    next >
Text File  |  1995-12-16  |  1KB  |  58 lines

  1. # VentureNet PPP login script (no SLIP)
  2. # 08/08/95 BC
  3.  
  4. String username
  5. String password
  6. String framing
  7. String IPAddress
  8.  
  9. # Trace on
  10. SetTimeout 60
  11.  
  12. CfgGetValue "Username" username
  13. if result = 0 then
  14.         GetInput "Enter your user name" username
  15.     if result = 0 then
  16.         Print "Warning, no username entered"
  17.     else
  18.         Print "Username set to ["; username; "]"
  19.     endif
  20. endif
  21.  
  22. CfgGetValue "Password" password
  23. if result = 0 then
  24.         GetPassword "Enter your password" password
  25.     if result = 0 then
  26.         Print "Warning, no password entered"
  27.     else
  28.         Print "Password set."
  29.     endif
  30. endif
  31.  
  32.         CommWaitFor     "ogin:"
  33.     CommSend    "dialin"
  34.     CommSend       "%r"
  35.     CommWaitFor    "ername:"
  36.     CommSend    username
  37.     CommSend    "%r"
  38.     CommWaitFor    "wort:"
  39.     CommSend    password
  40.     CommSend    "%r"
  41.  
  42. CfgGetValue "Framing" framing
  43. if result = 0 then
  44.     Abort "Can't read 'Framing' setting from qdeck.ini"
  45. endif
  46.  
  47. # VJSLIP/SLIP...
  48. if framing = "MPSLIP" then
  49.     CommWaitFor    ") to"
  50.     CommReadIPAddr    IPAddress
  51.     CfgSetValue    "IPAddress"    IPaddress
  52.     Print    ""
  53.     Print    "IP Address set to ["; IPAddress; "]"
  54. else
  55.     Print "Framing is PPP"
  56. endif
  57. END
  58.