borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (VB6 Crashes on Exit)Next Topic (Listview: deleting Listitems) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Sendkeys
Poster Message
steveycarr
Level: Trainee

Registered: 09-03-2007
Posts: 2

icon Sendkeys

Hi,

I developing a vb6 program which browses to a given url, when I recieve the page I would like to automatically login to the url, I can open the url ok but I cant seem to send the relevant username and password to the browser.  I've been trying several methods but I'm stumped. Is it possible to use "SendKeys" to the browser or do I have to change to some other method.

I can use "SendKeys" to other apps such as Notepad but not to a browser. Any ideas would be much appreciated.

Thanx in Advance

Steve  

____________________________
steveycarr

09-03-2007 at 09:15 AM
View Profile Send Email to User Show All Posts | Quote Reply
LaVolpe
Level: Protégé


Registered: 12-03-2007
Posts: 4
icon Re: Sendkeys

Not a big fan of SendKeys myself. Your first problem is that you need to ensure the textbox (or whatever control) that is suppose to receive the username and password has the focus. SendKeys targets the focused window.

____________________________
Insomnia is just a byproduct of "It Can't Be Done"

12-03-2007 at 05:02 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Sendkeys

Sendkeys would require the textbox in the url to have the focus -- on most websites, it doesn't.

Most likely the user will have to enter that information no matter what -- unless the website has a "remember me" option, or the username/id is passed via a GET protocall (that is, it's listed in the url, even if encrypted).


____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

14-03-2007 at 12:51 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
steveycarr
Level: Trainee

Registered: 09-03-2007
Posts: 2
icon Re: Sendkeys

Thanks Guys,

Looks like I might need to find some kind of workaround or just login like like normal humans!!!!!!!!

Steve   

____________________________
steveycarr

15-03-2007 at 07:57 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Sendkeys
Previous Topic (VB6 Crashes on Exit)Next Topic (Listview: deleting Listitems) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder