Autor Beitrag
tc4xe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Fr 16.02.07 17:21 
Hallo!

Hat man eigentlich eine Möglichkeit nicht auf, sondern neben den Button zu klicken?
Der Klick soll nicht manuel sondern autmatisch sein.

MfG
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Fr 16.02.07 17:23 
was meinst du denn mit neben dann button klicken?
meinst du damit auf die form oder wie?

Lg
Marvin
tc4xe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Fr 16.02.07 17:26 
Halt nicht die Form sondern einfach daneben ^^
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Fr 16.02.07 17:28 
häääääääääääääääääääääääää

meinst du irgendein bestimmtes objekt oder einfach auf etwas klicken, das nicht von delphi ist?

Lg
Marvin
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 16.02.07 17:29 
Einen Mausklick simuliert man so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var 
  x, y: Integer;
begin
  x := 100;
  y := 200;
  mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 00);
  mouse_event(MOUSEEVENTF_LEFTUP, x, y, 00);
end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
tc4xe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Fr 16.02.07 17:30 
Hmm.. also ich möchte eigentlich den Webbrowser angeklickt bekommen.

Aber da ich nicht weiss wie das geht habe ich mir überlegt wie ich es so machen könnte.

Edit: könnte man mouse_event nur auf den webbrowser beziehen?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 16.02.07 17:34 
user profile icontc4xe hat folgendes geschrieben:
Hmm.. also ich möchte eigentlich den Webbrowser angeklickt bekommen.

Schön, dass du das auch schon sagst! :roll:
user profile icontc4xe hat folgendes geschrieben:

Aber da ich nicht weiss wie das geht habe ich mir überlegt wie ich es so machen könnte.

Hä? :gruebel:
user profile icontc4xe hat folgendes geschrieben:

Edit: könnte man mouse_event nur auf den webbrowser beziehen?

Was für'n WebBrowser meinst du? Den auf deinem Desktop? IMHO gibt es auch in Delphi so eine Komponente. Was denn nun???

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
tc4xe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Fr 16.02.07 17:35 
ich meine den TWebbrowser Kommponenten
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 16.02.07 17:39 
user profile icontc4xe hat folgendes geschrieben:
ich meine den TWebbrowser Kommponenten

Du willst sicher hierauf hinaus.
Wie wäre es mit WebBrowser1.SetFocus? Weiß atm nicht, ob der so etwas hat ... :P

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
tc4xe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Fr 16.02.07 17:43 
Ja hat. Was kann man mit webbrowser1.SetFocus; machen?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 16.02.07 17:44 
user profile icontc4xe hat folgendes geschrieben:
Ja hat. Was kann man mit webbrowser1.SetFocus; machen?

Wie der Name schon sagt, ihm den Fokus geben. Probiere es doch aus! ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot