Hello
I create a new script using .net method for iexplore.
It works well but in case of using direct links it wouldnt.

Please find attached script below:
Backround:

In Row 1 - 9 I analyse the parent page and write the information to
?site variable.

On row 52 -89 I declare all websites and set Credentials variable for
later setplat command.

The script works, if I first! goto (example) www.iec.ch and click on
MyIEC Button on upper right corner.

Problem Sites: - Steps to duplicate.....
Create a favorite to following link: http://docbox.etsi.org/GA/

Goto in IE for example to www.Google.com and click to link
http://docbox.etsi.org/GA in Favorites:
If you use my script youll see that the parent site is still
www.google.com (see poup window) and then the script will not work.

Is there a idea to fix this problem?
Regards
Jrgen

Here the script
------------------------------------------------------------------------------------------------------------------------------
Parent
ReadText #0 ?Site
#Hier lt sich mit der Messagebox auslesen was im Logon Fenster steht.
Messagebox ?Site
EndParent

Dialog
Title "Windows-Sicherheit"
EndDialog

#================================================= ========
# ?CurrentTime(System) ist eine interne Variable
# Die temp variable ist die aktuelle Zeit
# Die beiden Zeiten werden miteinander verglichen
#================================================= ========
Set ?NewTime ?CurrTime(System)
Subtract ?NewTime ?OldTime ?Diff
#================================================= ============
# Wenn diese Zeit < wie 12 Sekunden ist, wird angenommen dass das
Kennwort faslch ist und fragr nach den Credentials
#================================================= ============
If ?Diff Lt "12"
DisplayVariables "Anmeldedaten wurden nicht akzeptiert. Bitte
korrigieren Sie Benutzername / Passwort."
Click #7
EndIf

#===============================
# Set ?OldTime and reset ?Diff to "0"
#===============================
Set ?OldTime ?CurrTime(System)
Set ?Diff "0"

#================================================= ===
# Enter stored Username and Password
#================================================= ===
#Call Logon
################################

Sub Logon
#################################

call Checksite
setplat ?Credentials
type $Username #4
type $Password #5
Click #7

endsub

sub Checksite
set ?Enabled "NO"

If "Welcome to the IEC" -in ?Site -I
#http://www.iec.ch/ Seite mit Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
#Messagebox ?Credentials
Endif

If "IEC -" -in ?Site -I
#http://www.iec.ch/dyn/www/f?p=103:58:5698337430581::::: Seite mit
Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "IECEx" -in ?Site -I
#http://www.iecex.com Seite mit Windows Logon
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "CENELEC" -in ?Site -I
#http://tinyurl.com/mqulvf9
Set ?Enabled "YES"
Set ?Credentials "IEC und Cenelec Logon"
Endif

If "docbox" -in ?Site -I
#http://docbox.etsi.org/GA/
Set ?Enabled "YES"
Set ?Credentials "ETSI.ORG"
Endif

If ?Enabled eq "NO"
Endscript
Endif
Endsub


--
jhillenb
------------------------------------------------------------------------
jhillenb's Profile: https://forums.netiq.com/member.php?userid=5480
View this thread: https://forums.netiq.com/showthread.php?t=51959