Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - login via VB or VBA

Reply
 
Old 07-23-2008   #1 (permalink)
sal21


 
 

login via VB or VBA

With: http://www.cerved.com/xportal/web/ita/

Click on "Area Clienti" (on the left of home page) appear the tipical form
to login.

Ho to insert user and psw in login form and press ok?
Possible to with VB classic or VBA or VBS???

note:
Now i just have a code to navigate in IE


My System SpecsSystem Spec
Old 07-23-2008   #2 (permalink)
Tom Lavedas


 
 

Re: login via VB or VBA

On Jul 23, 4:27 am, sal21 <sa...@xxxxxx> wrote:
Quote:

> With:http://www.cerved.com/xportal/web/ita/
>
> Click on "Area Clienti" (on the left of home page) appear the tipical form
> to login.
>
> Ho to insert user and psw in login form and press ok?
> Possible to with VB classic or VBA or VBS???
>
> note:
> Now i just have a code to navigate in IE
You have been asking this question for months now. I know English is
not your native language, but it would sure help if you explained what
you have tried and why that isn't working for you.

In the past, others have suggested the use of Sendkeys to do this
job. Below is a version that seemed to work for me, though I do not
have valid credentials to test with ...

sURL = "https://www.cerved.com/xportal/web/common/protected" _
& "/abbonati/controlloProfilo.jsp"
sUserID = "IDString" ' <- your ID goes here
sPassword = "Password" ' <- your password goes here
set oIE = CreateObject("InternetExplorer.Application")
With CreateObject("InternetExplorer.Application")
.Navigate sURL
With CreateObject("Wscript.Shell")
bFound = False
for i = 1 to 10 ' try 10 times
if .AppActivate("www.cerved.com") then
bFound = True
.sendkeys sUserID
wsh.sleep 100 ' delay 0.1 seconds
.sendkeys "{TAB}"
wsh.sleep 200 ' delay 0.2 seconds
.sendkeys sPassword
wsh.sleep 200 ' delay 0.2 seconds
.sendkeys "{TAB 2}{Enter}"
exit for
end if
if not bFound then wsh.sleep 250 ' wait one-quarter of a
second
Next
if not bFound then
wsh.echo "Login dialog not found."
end if
end with
.visible = true
end with

If it doesn't work for you, please expalin the problem in as much
detail as possible so someone can assist you more.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
most effective way via javascript login scripts to allow login rightsto all our servers to our Network Team group VB Script
2 identical profiles at login, and login error on startup. Software
login error, screensaver can't run on login screen, Direct X 9.0 not recognized Graphic cards
Login Completely Blocked w/User Profile Service Failed the Login Vista account administration
Urgent - Windows Mail keeps asking for confirmation of login and will not receive (login is correct) Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46