Autor Beitrag
Luzzifus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 200

Win2K
D6 Prof
BeitragVerfasst: Do 31.10.02 10:47 
hi leute,

ich möchte dass mein programm die Position des Maus-Cursors verändern kann, d.h. auf eine bestimmte schaltfläche bewegen kann, wenn sich ein fenster öffnet. wie mach ich das??
Raphael82
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Do 31.10.02 10:54 
F1 drücken und das finden:

ausblenden Quelltext
1:
SetCursorPos(x,y);					


Um also den Cursor in die obere linke Ecke zu verschieben machst folgendes:

ausblenden Quelltext
1:
SetCursorPos(0,0);					


MfG, Raphael

Edit: P.S.: Obwohl der Ursprung linksoben ist werden positive y-Werte benötigt!

_________________
Share your knowledge to receive perfection!
Luzzifus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 200

Win2K
D6 Prof
BeitragVerfasst: Do 31.10.02 10:59 
:shock: öhm.. tja.. is ja doch ganz einfach :D
naja hab auch schon f1 gedrückt nur DAS DA hab ich nicht gefunden..

naja vielen dank 8)
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 03.11.02 15:01 
Kannst du auch nicht. Zuerst Hilfe aufruffen und dann SetCursorPos suchen bringt nichts, weil SetCursorPos eine Api Funktion ist. Die Onlinehilfe sucht einfach in der falschen Datei. Also zuerst SetCursorPos in Delphi eintippen und dann F1 drücken. Dann findet die Onlinehilfe auch die Beschreibung.