1.

Solve : Automate logon.?

Answer»

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,
JayYou 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-)

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?Firefox is good at remembering passwords.  Or try SlimBrowser with RoboForms.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-)

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-)
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-)
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-)

Sir It's working very well but showing error after opening first.

Regards,
JayI 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-)

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


Discussion

No Comment Found