?
Solved

Sendkeys to a Login Screen.....

Posted on 2004-07-30
3
Medium Priority
?
646 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 500 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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