-
April 21st, 2009, 02:20 AM
#1
login from web page....
After i click on "Area Clienti" appear the tipical window autentication
How to insert in user box the value of my_var = user, and in password
box the value of my_password=mypassword
and after check "save pasword..." and click on ok button?????
naturally in VB or VBA code
-
April 21st, 2009, 10:31 PM
#2
Re: login from web page....
It's not clear what you want to do, but you probably don't want to use VBA or VB6. Authenticating against a system can only be done when you know what is expected. What you see is usually not what you get.
-
April 22nd, 2009, 01:22 AM
#3
Re: login from web page....
Originally Posted by dglienna
It's not clear what you want to do, but you probably don't want to use VBA or VB6. Authenticating against a system can only be done when you know what is expected. What you see is usually not what you get.
Sorry for my terrible english!;-)
In effect when i click on Area Clienti (see attached image) appear the tipical windows form for autenticatin.
I want to insert pasword and username and press ok via Vb6 code.
This is the http:\\www.cerved.it
-
April 22nd, 2009, 01:38 AM
#4
Re: login from web page....
Have you tried sendkeys ?
-
April 22nd, 2009, 01:46 AM
#5
Re: login from web page....
Originally Posted by DataMiser
Have you tried sendkeys ?
??? sendkeys ???
in other case have you understand my prob?
Tks for patience...
Last edited by sal21; April 22nd, 2009 at 01:49 AM.
-
April 22nd, 2009, 01:51 AM
#6
Re: login from web page....
Looks like a Windows Server. Maybe you could use the NET USE command to log in to a file share? Otherwise, change your username/password on your pc to the one that you want to log in as. If they match, your OS will supply them when asked.
-
April 22nd, 2009, 01:55 AM
#7
Re: login from web page....
Originally Posted by dglienna
Looks like a Windows Server. Maybe you could use the NET USE command to log in to a file share? Otherwise, change your username/password on your pc to the one that you want to log in as. If they match, your OS will supply them when asked.
Maybe you could use the NET USE command to log in to a file share????
In effect you suggest me to send via vb6 a command NET USE, similar:
http:\\www.cerced.it\USE="xxxx", PASSWORD="YYYY" ecc....
-
April 22nd, 2009, 07:54 AM
#8
Re: login from web page....
hi,
you can use HTML DOM for this.
you can look at the html source and find out following three things;
1. userid text box id
2. password text box ix
3. the button you click to autheticate normally called login.
IE.document.Forms.frmLogin.userid.Value = Text1.Text IE.document.Forms.frmLogin.Password.Value = Text2.Text
IE.document.Forms.frmLogin.loginSubmit.Click
here ;
frmlogin is page name, you can get this from DOM inspector.
userid, password are text boxes where you enter your userid and password.
and loginsubmit is login command button name.
note : i have used this in VB6. not sure if it'll work in dot net.
Hope this helps.
edit :
you may also want to take a look at this : http://msdn.microsoft.com/en-us/libr...45(VS.85).aspx
Last edited by adbanginwar; April 22nd, 2009 at 07:56 AM.
Reason: added some text
-
April 22nd, 2009, 08:35 AM
#9
Re: login from web page....
Originally Posted by adbanginwar
hi,
you can use HTML DOM for this.
you can look at the html source and find out following three things;
1. userid text box id
2. password text box ix
3. the button you click to autheticate normally called login.
IE.document.Forms.frmLogin.userid.Value = Text1.Text IE.document.Forms.frmLogin.Password.Value = Text2.Text
IE.document.Forms.frmLogin.loginSubmit.Click
here ;
frmlogin is page name, you can get this from DOM inspector.
userid, password are text boxes where you enter your userid and password.
and loginsubmit is login command button name.
note : i have used this in VB6. not sure if it'll work in dot net.
Hope this helps.
edit :
you may also want to take a look at this : http://msdn.microsoft.com/en-us/libr...45(VS.85).aspx
Hi friend tks for suggestion...but i work with VB& classic not with .net
But dubt have you clicked on link Area Clienti? appear the wondows box autentication?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|