Autor Beitrag
gamer94
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: So 04.03.07 18:06 
Ich hoffe ich hab die richtige Sparte erwischt, aber nun meine Frage:
Wie kann ich die Richtung meiner Maus ändern, also wenn ich sie nach oben schiebe, soll der Mauszeiger nach Links gehen. Wenn ich sie nach unten schiebe nach rechts, usw.

Hoffe ihr könnt mir helfen
Shorty
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 107

Win XP, Ubuntu 8.04
Delphi 7 Prof., Delphi 2005 Pers.
BeitragVerfasst: Mo 05.03.07 18:01 
Hast du schon nen Ansatz, wie du das versuchst?
Wenn nicht, probier im OnMouseMove-Ereignis der Form, x und y abzufragen und dann entsprechend die Position der Maus mit SetCursorPos() zu verändern!
gamer94 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win7 HP, WinXP
Delphi 7 Pers.
BeitragVerfasst: Mo 05.03.07 18:36 
Ich hab eigentlich noch keinen Ansatz und bin noch ziemlich neu. Aber Danke schon mal, ich werde es ausprobieren.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mo 05.03.07 19:33 
Hallo,

sinnvoller wird es wohl sein einen globalenSuche in: Delphi-Forum MOUSE HOOK einzurichten und bei diesem dann die Position entsprechend geändert weiterzugeben. Allerdings ist das nicht unbedingt etwas für (mutmaßliche) Anfänger!

Viel Glück,
Hape