Autor Beitrag
einfach112
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Fr 10.11.06 22:45 
hallo ! nachdem man eine seite mit dem webbrowser geladen hat kann man ja z.B. mit der Tab taste von link zu link springen hierbei wird der link imrandet und somit selectiert ... meine frage ist nun wie kann ich voll automatisch dem Webbrowser mitteile das er z.B. bitte z.B. den 5 link selectieren soll oder vieleicht den 18 link der "Anmelden" heist ?!
Hat jemand eine ahnung wie ich diese links ansprechen kann ?
das wichtige ist das ich den link zunächst einmal selectieren muss und nicht einfach die adresse auslesen oder sonstiges ?

Danke wie immer schonmal im voraus für eure hilfe ...

_________________
sorry bin noob !
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 11.11.06 17:38 
Hallo,

mit:
ausblenden Delphi-Quelltext
1:
Webbrowser.OleObject.Document.Forms.Item(0).Suchenach.Focus;					
kann man den Focus auf ein Element eines HTML-Formulars setzen.("SucheNach" ist der Name des Elements)

Könnte mir vorstellen das das so ähnlich auch bei Links funktioniert, hab es bisher noch nicht getestet.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
einfach112 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Sa 11.11.06 22:23 
Titel: ...danke für die antwort aber...
...danke für die antwort aber leider ist das genau das wo ich hängen bleibe .... weis einfach nicht wie ich zu dem gesuchten link springen kann ... hat sonst noch einer eine idee ?
MfG
Einfach112

_________________
sorry bin noob !
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 11.11.06 22:48 
Hallo,

musst Du den erst suchen?
wie hast Du es denn probiert?

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
BerTeL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windowx XP
Delphi 7 Enterprise
BeitragVerfasst: Sa 11.11.06 22:51 
hmmm weiß jetzt nicht ganau ob das geht aber vieleicht mit einer schliefe? 5 mal die tabtaste drücken und dann ist man ja da wo man ist also
ausblenden Delphi-Quelltext
1:
2:
for i := 0 to 4 do
procedur tabdrücken (keine ahnung wie das geht ...)
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 11.11.06 23:35 
Hallo,

bevor man das mit Tasten realisiert, dann lieber so:
ausblenden Delphi-Quelltext
1:
    WebBrowser1.OleObject.Document.All.Tags('A').Item(5).Focus;					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )