[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/20/2003 at 09:17AM PDT, ID: 20744213
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Vbscript/wsh to automate web authentication and logout  with no user input boxes necessary

Asked by frustratedprog in Miscellaneous Programming, Windows Batch Scripting

Tags: vbscript

Desperate to obtain answer to enable users to click vbs icon to automate web authentication to secure website. Want user 2 click on icon,be signed in and then be logged out. Have code to launch website but loginid/password segment has been eluding me 4 several weeks and have to face the piper this Monday. Would like users to be able to automatically logout too but if I could get first segment to work [company id, login id,password] would be estatic.  my code currently [test with my email]  is as follows, but again can't automate getting login and password and then hitting submit key/enter key. Would the tab & send key codes be useful in this type of scenerio?  Pls note this will actually be for a secure  online account website that not only needs login id and password but also company id [which is first parameter b 4 loginid and password so its actually 3 inputs. NO MSG BOXES ALLOWED.  Just and icon to click login and get back out of application [perhaps sleep a few seconds before it logs out. Thanks immensly.... a whole lot of immensly. Pls assist. should I combine with ASP , javascript, to work? if so how? Remember site is already built so I am not incorporating into and html script. Just trying 2 hit the secure website site.

 '[iewithurl.vbs]

' Display a URL
Dim IE
Dim uSERNAME
Dim PASSWORD
Dim crtScreen
Set IE = CreateObject("InternetExplorer.Application")
USERNAME = "I want to put in specific password and login I feed it as an administrator that will always be used no matter who I give vbs icon to....."
PASSWORD = "XXXXXXX"

With IE
        .left=200
        .top=200
        .height=400
        .width=400
        .menubar=0
        .toolbar=1  
        .statusBar=0
        .navigate "http://mail.yahoo.com/?.intl=us"
        .visible=1
End With

'wait a while until IE as finished to load
Do while IE.busy
loop

Set IE = Nothing

WScript.Quit(0)


****************************************************************
I HAVE ALSO ADDED THE FOLLOWING SECTION to the end of the previous BUT IT JUST SITS THERE AFTER THE SITE IS LAUNCHED too.  at least it did not generate an error but it did not work either. just another idea

******************************************************************

Sub Main

  crt.Screen.Synchronous = True

  ' connect to host on port 23 (the default telnet port)
  '
  'crt.Session.Connect "/TELNET login.myhost.com 23" *****this was code I saw using telnet instead of http to hit a site which I tried but did not work **********

  crt.Screen.WaitForString "ogin:"

  'crt.Screen.Send "myusername" & vbCr

  crt.Screen.Send "USERNAME" & vbTab

  crt.Screen.WaitForString "assword:"

  'crt.Screen.Send "mypassword" & vbCr

  crt.Screen.Send "PASSWORD" & vbCr

  crt.Screen.Synchronous = False

End Sub


WScript.Quit(0)

# $language = "VBScript"
# $interface = "1.0"

' Connect to an SSH server using the SSH2 protocol. Specify the
' username and password and hostname on the command line as well as
' some SSH2 protocol specific options.

Sub Main

  'Dim host
  Dim Yahooid
  'host = "ssh.somecompany.com"
  'Dim user
  Dim PASSWORD
  PASSWORD = " do i put real password here to make it work...don't want it to set up cookies, want it 2 work with specific password and login i feed it initially l"
  'user = "myusername"

  ' Prompt for a password instead of embedding it in a script---DON'T WANT TO DO THIS BUT I WILL IF I HAVE TO...
  '
  Dim passwd
  passwd = crt.Dialog.Prompt("Enter password for " & host, "Login", "",
True)

  ' Build a command-line string to pass to the Connect method.
  '
  cmd = "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5
" & host

  crt.Session.Connect cmd

End Sub
psl remember this will not be for a simple email sign in. I just used used email to test. I need it to auto sign on to an online account with 3 input fields.

thanks... frustratedprog
[+][-]09/20/03 11:03 AM, ID: 9399447

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/21/03 03:18 AM, ID: 9401904

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/03 03:51 AM, ID: 9401958

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/21/03 09:06 AM, ID: 9402810

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/03 10:52 PM, ID: 9403677

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/03 06:55 AM, ID: 9405735

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/03 09:00 PM, ID: 9410449

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/24/03 05:00 AM, ID: 9419928

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/24/03 05:08 AM, ID: 9419971

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/03 04:05 AM, ID: 9450427

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/03 04:07 AM, ID: 9450435

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/01/03 04:43 AM, ID: 9465826

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/01/03 04:49 AM, ID: 9465859

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/01/03 04:50 AM, ID: 9465864

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/01/03 05:01 AM, ID: 9465928

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Programming, Windows Batch Scripting
Tags: vbscript
Sign Up Now!
Solution Provided By: bhagyesht
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10/01/03 01:57 PM, ID: 9469754

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/07/03 05:30 AM, ID: 9505107

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/07/03 05:41 AM, ID: 9505172

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/10/03 04:52 AM, ID: 9526959

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/10/03 05:00 AM, ID: 9527007

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091028-EE-VQP-87