Link to home
Start Free TrialLog in
Avatar of JaguarSoCal
JaguarSoCal

asked on

Sendkeys to a Login Screen.....

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
ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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/")

Avatar of JaguarSoCal
JaguarSoCal

ASKER

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