Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Automate logon.  (Read 9941 times)

0 Members and 1 Guest are viewing this topic.

Jayanand

    Topic Starter


    Beginner
    Automate logon.
    « on: July 22, 2006, 12:48:12 AM »
    Hi Expert !!!

    sir, I have to open/logon my official  INTERNET WEB SITE within interval of 1 or 2 hours daily. The main server is not here. The Home page have to Put the USERNAME AND PASSWORD and have to click then to login. Due to everytime fitting USERNAME AND PASSWORD and click its stressfull.

    Is there anyway/program/code through i will not have to open Internet explore and don't have to put USERNAME, PASSWORD again and again or automatic logon.

    It's automatically work within inteval.

    REgards,
    Jay

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Automate logon.
    « Reply #1 on: July 22, 2006, 06:55:36 AM »
    You can open and login to a website by scripting IE. Need to know the address of the site.

    Quote
    within interval of 1 or 2 hours daily

    Not sure what you mean by this but we may be able to set up something with the task scheduler or an internal timer in the login script.

    Let us know. 8-)

    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Automate logon.
    « Reply #2 on: July 22, 2006, 08:19:03 AM »
    Does that site give you the option to save password?  I generally would not recommend using that feature for security reasons but, in this case, it might be a good choice for you if the option is available.  

    For username, have you checked to see whether IE remembers most recently used usernames?  If you open your browser to that website's logon page, put your cursor in the username box, and either click again or hit the down arrow on your keyboard, do you see your username in a list of recently used usernames?

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Automate logon.
    « Reply #3 on: July 22, 2006, 03:05:14 PM »
    Firefox is good at remembering passwords.  Or try SlimBrowser with RoboForms.
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    Jayanand

      Topic Starter


      Beginner
      Re: Automate logon.
      « Reply #4 on: July 23, 2006, 12:47:04 AM »
      Hi Sir,
      Thanks for reply and assist.
      The Web address is ccc.hyundai-motor.com
      have to open and check within interval of 1 or 2 hours.
      want to go after the main login or home page without putting the USERNAME AND PASSWORD again and again.

      Pleas do sir if possible.

      Thanking you with Regards,
      Jay


      Quote
      You can open and login to a website by scripting IE. Need to know the address of the site.

      Quote
      within interval of 1 or 2 hours daily

      Not sure what you mean by this but we may be able to set up something with the task scheduler or an internal timer in the login script.

      Let us know. 8-)


      Sidewinder



        Guru

        Thanked: 139
      • Experience: Familiar
      • OS: Windows 10
      Re: Automate logon.
      « Reply #5 on: July 23, 2006, 05:55:28 AM »
      Jay,

      Still unclear about this interval thing. The script as written will bring up your site, log you on, wait 1 hour, quit IE and repeat.

      Code: [Select]
      Do While True
        Set objIE = CreateObject("InternetExplorer.Application")
        objIE.Navigate "http://ccc.hyundai-motor.com/ccc/main.jsp"
        Call TimeDelay
        With objIE
          .Visible = True
          .Document.frmCcc.txtuid.value="username"  
          .Document.frmCcc.txtpwd.value="password"
          .Document.frmCcc.submit()
        End With
        WScript.Sleep 3600000
        objIE.Quit
      Loop
       
      Sub TimeDelay()
        Do While objIE.Busy
          WScript.Sleep 200
        Loop
      End Sub

      Replace username and password with real values. Save the script with a vbs extension and run from the command prompt as wscript scriptname.vbs

      Note: If security is a concern, the password should be in a external data store preferably in encrypted form. Consider also that such a scheme would result in considerable additional complexity and overhead.

       Good luck. 8-)
      « Last Edit: July 23, 2006, 06:05:05 AM by Sidewinder »
      The true sign of intelligence is not knowledge but imagination.

      -- Albert Einstein

      Jayanand

        Topic Starter


        Beginner
        Re: Automate logon.
        « Reply #6 on: July 24, 2006, 05:59:25 AM »
        Sir, This is actually what i need. A lot of thanks.

        Sir it's open and running till the time and quit once but next opening time it's giving error (error.jpg) or not run.

        One thing also i want to ask that : Where should i have to save this file. Will i have to run scrip command daily in command prompt.
        When this process will not have to work, what i will have to do or For removing this process what will i have to do.

        A Lot of Thanks and Regards,

        Jay

        Quote
        Jay,



        Replace username and password with real values. Save the script with a vbs extension and run from the command prompt as wscript scriptname.vbs

        Note: If security is a concern, the password should be in a external data store preferably in encrypted form. Consider also that such a scheme would result in considerable additional complexity and overhead.

         Good luck. 8-)
        « Last Edit: July 24, 2006, 06:04:52 AM by Jayanand »

        Sidewinder



          Guru

          Thanked: 139
        • Experience: Familiar
        • OS: Windows 10
        Re: Automate logon.
        « Reply #7 on: July 24, 2006, 07:40:57 AM »
        You can save the script anywhere you want, just be sure to point to the directory when you reference the script. For example you posted you saved the script on the desktop.

        wscript "c:\documents and settings\administrator\desktop\jj.vbs"

        You can use the task scheduler to launch the script or setup a shortcut. The tricky part is that wscript is the executable program and the script name is a command line parameter. The script was written as a loop; use the task manager to kill it.

        Updated script (the original has a small problem) ;)

        Code: [Select]
        Set objIE = CreateObject("InternetExplorer.Application")
        Do While True
          objIE.Navigate "http://ccc.hyundai-motor.com/ccc/main.jsp"
          Call TimeDelay
          With objIE
            .Visible = True
            .Document.frmCcc.txtuid.value="username"  
            .Document.frmCcc.txtpwd.value="password"
            .Document.frmCcc.submit()
          End With
          WScript.Sleep 3600000
        Loop
         
        Sub TimeDelay()
          Do While objIE.Busy
            WScript.Sleep 200
          Loop
        End Sub

        Hope this answers all your questions. 8-)

        The true sign of intelligence is not knowledge but imagination.

        -- Albert Einstein

        Jayanand

          Topic Starter


          Beginner
          Re: Automate logon.
          « Reply #8 on: July 25, 2006, 12:36:44 AM »
          Sir It's working very well but showing error after opening first.

          Regards,
          Jay

          Sidewinder



            Guru

            Thanked: 139
          • Experience: Familiar
          • OS: Windows 10
          Re: Automate logon.
          « Reply #9 on: July 25, 2006, 05:43:39 AM »
          I can only reproduce your error if IE is terminated while the script is running. Perhaps I don't understand what you're trying to do. After IE is started, the site brought up and logged-in what exactly do you expect to happen? I'm also unclear about the interval thing.

           8-)

          The true sign of intelligence is not knowledge but imagination.

          -- Albert Einstein

          Jayanand

            Topic Starter


            Beginner
            Re: Automate logon.
            « Reply #10 on: July 27, 2006, 11:41:49 PM »
            Quote
            I can only reproduce your error if IE is terminated while the script is running. Perhaps I don't understand what you're trying to do. After IE is started, the site brought up and logged-in what exactly do you expect to happen? I'm also unclear about the interval thing.

             8-)


            A lot of thanks. script running very well, this is exactly what i nee for autmatic logon.

            Regards,
            Jay