CursorPosition
Ist es möglich den Cursor wieder in seine alte Position zu setzen?
Delphi-Quellcode:
SetCursorPos(left+100, top+100);
??? // hier soll der Cursor zurück wo er vorher war |
Re: CursorPosition
Ja, alte Position merken.
|
Re: CursorPosition
ich möchte aber nicht die Position notieren und eingeben, sondern automatisch berechnen. Gibt es keinen Code dafür z.B. CursorOldPos oder so was ? :mrgreen:
|
Re: CursorPosition
wofuer gibts variablen?
|
Re: CursorPosition
Du speicherst kurz vorher die alte Position in einer Variablen und setzt dann den Cursor später da wieder hin.
Delphi-Quellcode:
var
OldPt: TPoint; begin OldPt:= Mouse.CursorPos; SetCursorPos(left+100, top+100); Mouse.CursorPos:= OldPt;// hier soll der Cursor zurück wo er vorher war |
Re: CursorPosition
Sehr gut :)
Danke! |
Re: CursorPosition
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:34 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz