48 users online (1 members and 47 guests)  


  Results 1 to 2 of 2

Related

  1. Vbscript/html Checkbox    Forum: HTML Forum
    Replies: 0
  2. Variable problems in HTML / Vbscript    Forum: HTML Forum
    Replies: 0
  3. VBscript Check box help    Forum: Javascript Forum
    Replies: 1
  4. HTML/VBSCRIPT checkbox help...please    Forum: Website Scripts Forum
    Replies: 4
  5. HTML/VBSCRIPT checkbox help    Forum: Website Scripts Forum
    Replies: 7
  1. #1
    vexixx's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2009
    Posts
    2

    Question VBScript/Html Help

    Hey guys this is my first post. I've been getting alot of information off the site, but I'm trying to put something together and having trouble. You see it works, but it works to fast. What the code is doing is telneting into a router and instantly dropping all the text and it messes up.
    <HTML>
    <script language="VBScript">
    <!--

    Sub Validate
    Dim oshell
    Set oshell = createobject("Wscript.Shell")
    oshell.run"telnet.exe"
    oshell.sendkeys"open 10.210.226.229"+("{Enter}")
    oshell.sendkeys"admin"+("{Enter}")
    oshell.sendkeys"admin1234$"+("{Enter}")
    oshell.sendkeys"telnet 10.210.91.9 /source f0/1"+("{Enter}")
    oshell.sendkeys"root"+("{Enter}")
    oshell.sendkeys"ttelnet"+("{Enter}")
    oshell.sendkeys" "+("{Enter}")

    Dim TheForm
    Set TheForm = Document.forms("ValidForm")

    If TheForm.show_ber.checked = true Then
    oshell.sendkeys"show_ber"+("{Enter}")
    End If

    If TheForm.rb.checked = true Then
    oshell.sendkeys"rb"+("{Enter}")
    End If

    If TheForm.tc.checked = true Then
    oshell.sendkeys"tc"+("{Enter}")
    End If


    End Sub

    -->
    </script>
    </head>

    <body>
    <h3>78730</h3>
    <hr>
    <form id="ValidForm" action=""
    onsubmit="Validate(); return false;" language="jscript">

    Show_ber:
    <input type=checkbox name="show_ber" size="12"><BR>
    RB
    <input type=checkbox name="rb" size="12"><BR>
    TC
    <input type=checkbox name="tc" size="12"><BR>
    <input name="Submit" type="Submit" value="Submit">

    </form>
    </BODY>
    </HTML>

    I need it to log in with telnet and then peform the selected commands, I tried WScript.Sleep but it just stops the script from running whereever its at. Any have anything for me please? Thank you very much
    Last edited by vexixx; 11-08-2009 at 11:01 AM.

  2. #2
    vexixx's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2009
    Posts
    2

    Re: VBScript/Html Help

    I've tried some other commands .waits and some others just "hoping" lol still can't make it pause.



Tags for this Thread