automatic mouse move and click

Please discuss general Delphi programming topics here.

automatic mouse move and click

Postby emiliano » November 28th, 2005, 4:11 am

Hi everyone, I've come across something a bit challenging and wondering if you could give me a hand.

Does anyone know how to go about creating a piece of simple software that automatically moves the mouse pointer on the screen and clicks at certain coordinates periodically? The added challenge is to get the above happening not on a form but on the desktop or on another window, such as an IE window.

Thanks for any help or ideas,

- Emiliano
emiliano
Member
Member
 
Posts: 1
Joined: November 28th, 2005, 4:07 am

Postby Edwin » November 28th, 2005, 11:01 am

Hi EMiliano,

Maybe this will help?

uses
..., Windows, Controls;

procedure ...GoToDescTopPos(ADescTopPosX, ADescTopPosY:Integer);
var
Pos:TPoint;
begin
Pos.X := ADescTopPosX;
Pos.Y := ADescTopPosY;
Mouse.CursorPos := ClientToScreen(Pos);
end;

...

Succes,
Edwin
User avatar
Edwin
Active Member
Active Member
 
Posts: 18
Joined: November 18th, 2005, 11:57 pm
Location: Breda, NL


Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 9 guests

cron