Autor Beitrag
Andreas95
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Mi 11.08.10 03:10 
Gibt es eine möglickeit das wenn mann z.b. auf einen button drückt, das dann ein "a" an den webbrowser (twebbrowser) geschickt wird? Das heisst, in einem bestimmten (oder zurzeit ausgewähltem) Editorfeld an der zur zeit offene seite im webbrowser soll jetzt ein "a" stehn.
Dies passiert natürlich alles im gleichem form.
Danke Im vorraus, und ich entschuldige mich für irgendwelche unklarheiten.
Stundenplan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 32

Win 7
Delphi 7 Pers., C# (VS 2010 Express)
BeitragVerfasst: Mi 11.08.10 08:51 
Hallo!

WebBrowser1.OleObject.document entspricht dem document von JavaScript; über dieses solltest du auf dein Eingabefeld zugreifen können, zum Beispiel:
ausblenden Delphi-Quelltext
1:
WebBrowser1.OleObject.document.all.Eingabefeldname.value := 'a';					


Viele Grüße,
Stundenplan.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mi 11.08.10 10:58 
Hi :)

Wenn du da versuchst, eine Bildschirmtastatur so programmieren: Die gibt es schon als Komponente, allerdings erst seit Delphi 2010.

lg,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)