Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Do 22.03.07 17:25 
Saublöde Frage;

wie kann ich den Mauszeiger an eine bestimmte Position (X, Y) setzen.

sorry und danke


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 22.03.2007 um 17:34
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Do 22.03.07 18:43 
ausblenden Delphi-Quelltext
1:
Mouse.CursorPos := Point(0,0);					


und ab in die Ecke mit der Maus.
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 22.03.07 18:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure SetMousePosition(X, Y : Integer);
var
          myPoint : TPoint;
begin
          myPoint.X := X;
          myPoint.Y := Y;

          Mouse.CursorPos := myPoint;
end;

Example of use:

ausblenden Delphi-Quelltext
1:
SetMousePosition(0,0);					


Moderiert von user profile iconmatze: Delphi-Tags hinzugefügt
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Di 27.03.07 20:56 
vielen dank!!!
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 27.03.07 21:40 
SetCursorPos(0,0); :gruebel:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.