Autor Beitrag
tortom1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175

Win XP, Win Server 2003 - 2012, Win 7
Delphi 7
BeitragVerfasst: Do 29.05.08 09:36 
Hallo,
ich habe ein Programm in der Mache, welches in der Systray abgelegt ist. Dieses soll nun über einen Mausdoppelclick geöffnet werden, wenn sich der Mauszeiger in einem bestimmten Bereich befindet.
Dazu wird über den Timer zyklisch die Mausposition ermittelt. Befindet sich der Mauszeiger nun im zulässigen Bereich, soll noch auf Doppelclick geprüft werden. Wurde der ausgeführt, dann soll das Programm gestartet werden bzw. exakter die Form angezeigt werden.
Wie kriegt man nun in dem Timer mit, ob auch die Maustaste doppelgeclickt wurde?
Gruß
Tortom
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 09:37 
Suche in der Entwickler-Ecke TRAYICON

Warum so kompliziert mit Timer??

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
tortom1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175

Win XP, Win Server 2003 - 2012, Win 7
Delphi 7
BeitragVerfasst: Do 29.05.08 09:45 
Da das Programm in der Systray liegt, ist es nicht "aktiv". Daher bekommt es dann nicht mit, ob ein Doppelclick ausgeführt wurde. Der Timer wird jedoch auch im Hintergrund brav ausgeführt, die Maus-Cursorposition läßt sich dann mit Mouse.CursorPos.x und Mouse.CursorPos.y ermitteln.
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 09:53 
Ähm wie das funktioniert weiß ich ;-)

www.delphi-fundgrube.de/faq01.htm

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
tortom1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175

Win XP, Win Server 2003 - 2012, Win 7
Delphi 7
BeitragVerfasst: Do 29.05.08 13:03 
Hallo Stefan,
weißt Du denn eine unkompliziertere Methode, um das Programm aus der Systray heraus mit Mausdoppelclick innerhalb eines definierten Bereichs zu starten?
Gruß
Tortom
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 13:06 

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Do 29.05.08 13:08 
Globaler Mousehook.

_________________
Na denn, dann. Bis dann, denn.
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 13:09 
user profile iconalzaimar hat folgendes geschrieben:
Globaler Mousehook.


Sehr unkompliziert für einen Anfänger wie es scheint *g*

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 29.05.08 13:12 
user profile iconZeitGeist87 hat folgendes geschrieben:
user profile iconalzaimar hat folgendes geschrieben:
Globaler Mousehook.


Sehr unkompliziert für einen Anfänger wie es scheint *g*
Aber wenn er das machen will, was ich vermute, dann wäre das die einzige sinnvolle Möglichkeit. So wie ich das verstehe, möchte er die Anwendung im Tray haben, und irgendwo auf dem Bildschirm einen Doppelklick machen und daraufhin die Anwendung nach vorne holen. Obwohl ich so etwas relativ sinnfrei finde... :gruebel:

_________________
We are, we were and will not be.
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 13:14 
Ja, sehr strange!

Er könnte aber auch einen Screenshot vom Desktop machen und ein Programm maximiert mit bsNone ausführen und das OnDoubleClick-Ereignis der Form prüfen.

Blöde Möglichkeit, aber eben auch eine ;-)

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
tortom1000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175

Win XP, Win Server 2003 - 2012, Win 7
Delphi 7
BeitragVerfasst: Do 29.05.08 13:40 
Sorry, das ich gefragt habe.
Ist doch zu strange und zusätzlich brauch ich's ja nicht, weil's eh sinnfrei ist.
Trotzdem Danke
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 29.05.08 13:43 
user profile icontortom1000 hat folgendes geschrieben:
Sorry, das ich gefragt habe.
Ist doch zu strange und zusätzlich brauch ich's ja nicht, weil's eh sinnfrei ist.
Trotzdem Danke


Ähm ja..wir haben dir Lösungsmöglichkeiten aufgezeigt und du hast jetzt nichts besseres zu tun, als diese anscheinend fehlzuinterpretieren und dann einen auf beleidigte Leberwurst du machen.

Sehr unverständlich!

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 29.05.08 13:44 
Nur weil ich es sinnfrei halte, muss es das ja nicht sein. Könnte sein, dass es einen guten Grund dafür gibt - nur fällt mir halt keiner ein. ;-)

_________________
We are, we were and will not be.