Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Delphi Question]How To Move Mouse?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
muffinman177
Master Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 377
Location: Drury Lane

PostPosted: Thu Aug 23, 2007 7:52 pm    Post subject: [Delphi Question]How To Move Mouse? Reply with quote

How do we control the mouse in delphi? Like in pascal it would be:

Code:

begin
MoveMouseSmoothEx(25,250+random(0),20,30,45,30,20);
end.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Aug 23, 2007 7:53 pm    Post subject: Reply with quote

SetCursorPos
Back to top
View user's profile Send private message
muffinman177
Master Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 377
Location: Drury Lane

PostPosted: Thu Aug 23, 2007 7:55 pm    Post subject: Reply with quote

and then the coordinates? Could you give me an example.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Aug 23, 2007 7:57 pm    Post subject: Reply with quote

SetCursorPos(0, 0);

moves to coordinates 0, 0, (top left corner)
Back to top
View user's profile Send private message
muffinman177
Master Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 377
Location: Drury Lane

PostPosted: Thu Aug 23, 2007 8:22 pm    Post subject: Reply with quote

Ok, thanks. I'll rep you as soon as I can.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25794
Location: The netherlands

PostPosted: Thu Aug 23, 2007 8:55 pm    Post subject: Reply with quote

Code:
mouse.CursorPos:=point(x,y);

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 24, 2007 5:25 am    Post subject: Reply with quote

here is a program i made not long ago but i as to lazy to finish Smile
source included (refresh if u cant see link)

also, extract all the files outside of the rar or it wont work.... so delphi can find the other files path



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
muffinman177
Master Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 377
Location: Drury Lane

PostPosted: Fri Aug 24, 2007 9:19 am    Post subject: Reply with quote

Thanks guys. Smile
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Aug 24, 2007 10:35 pm    Post subject: Reply with quote

gecursorpos(pos);
setcursorpos(pos.x,pos.y);

or

setcursorpos(x,y,0,0,0);
x:=
y:=
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites