CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: PROGRAM LOGIN

  1. #1
    Join Date
    Feb 2000
    Location
    UK
    Posts
    5

    PROGRAM LOGIN

    Hi, I wonder if anyone can help me, I have a program that I automatically load from my VB program. But when it starts it has a login box appear. I need to know is there anyway to enter my username and password from my VB when I load it??? then press enter and it automatically login.....

    I don't know if there is a way of doing this, if there isn't please still let me know....

    Thanks Martin


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: PROGRAM LOGIN

    If the Login Form has Focus, use the SendKeys Function in VB to Send the Keystrokes to the Active Screen, ie, something like:

    Shell "Login.exe", vbNormalFocus
    SendKeys "username{TAB}password{ENTER}", 1


    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured