Click to See Complete Forum and Search --> : PROGRAM LOGIN


porsche
February 8th, 2000, 03:24 PM
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

Aaron Young
February 8th, 2000, 03:30 PM
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
ajyoung@pressenter.com
aarony@redwingsoftware.com