Registriert seit: 19. Dez 2005
Ort: Rosdorf
2.022 Beiträge
Turbo Delphi für Win32
|
Re: Maus bewegen
14. Jan 2008, 21:10
dann halt so
Delphi-Quellcode:
if MoveHandToPosition(Schreibtisch.Objects.FindByName('Mousepad').FindByName('Mouse').Position) < 0 then
begin
ShowMessage('You do not have a Mousepad on your desk, go get one!');
exit;
end;
if not TakeObjectUnderHand(CurrentPos) then
begin
if MoveFeetToPosition(Schreibtisch.Objects.FindByName('Mousepad').FindByName('Mouse').Position) < 0 then
ShowMessage('You can''t get away! And then there will be cake');
exit;
end;
if not TakeObjectUnderFeet(CurrentPos) then
ShowMessage('You should really visit a doc!');
exit;
end;
end;
MoveHandToPosition(Point(X, Y));
Nikolai Wyderka 
SWIM SWIM HUNGRY!
Neuer Blog: hier!
|
|
Zitat
|