Solved

Sendkeys to a Login Screen.....

Posted on 2004-07-30
3
639 Views
Last Modified: 2008-02-01
FYI I'm new to programming........Taking 2 classes in Sept.

Anyways, I'm trying to Login using SendKeys......
I was using Access but found to many restrictions.......

I now have VB.net 6......

     Problem that I'm having is when I click on the button IE opens, goes to the web page and then nothing......
Sometimes the UserID data with show up in the IW web address box, or the web page will open up
with the cursor blinking, waiting for the username and password....

******  What's Missing Here.....?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ie : ie = CreateObject("InternetExplorer.Application")
        Dim Wsh : Wsh = CreateObject("WScript.Shell")

        ie.visible = True
        ie.navigate2("http://guest.realtylife.com/")
        Wsh.SendKeys("xsocalmls")
        Wsh.SendKeys("st7st7Xas")

       
    End Sub
0
Comment
Question by:JaguarSoCal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
aelatik earned 125 total points
ID: 11683312
Since you are using sendkeys there is no security issue to consider.
Why don't you post the username and password directly in the URL ?


        Dim ie : ie = CreateObject("InternetExplorer.Application")
        ie.visible = True
        ie.navigate2("http://xsocalmls:st7st7Xas@guest.realtylife.com/")


BTW : You have put a valid username and password on the post, isn't that a problem ?
0
 
LVL 14

Expert Comment

by:ptakja
ID: 11684417
Another method you could use to kick off IE (which, incidentally, is the .NET preferred way of doing it is this:

System.Diagnostics.Process.Start("iexplore.exe", "http://xsocalmls:st7st7Xas@guest.realtylife.com/")

That will open up iexplorer.exe and navigate to the site listed in 1 line of code.

The line below will open up the default web browser app and navigate to the site listed.

System.Diagnostics.Process.Start("http://xsocalmls:st7st7Xas@guest.realtylife.com/")

0
 

Author Comment

by:JaguarSoCal
ID: 11685381
aelatik   Since you have the 1st working response, you get the credit.....

Thanx alot....

I was told earlier that MicroSoft did not allow UserName and Passwords in the current version of IE....


Thanx Again
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question