View previous topic :: View next topic |
Author |
Message |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Thu Aug 23, 2007 7:52 pm Post subject: [Delphi Question]How To Move Mouse? |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Aug 23, 2007 7:53 pm Post subject: |
|
|
SetCursorPos
|
|
Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Thu Aug 23, 2007 7:55 pm Post subject: |
|
|
and then the coordinates? Could you give me an example.
|
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Aug 23, 2007 7:57 pm Post subject: |
|
|
SetCursorPos(0, 0);
moves to coordinates 0, 0, (top left corner)
|
|
Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Thu Aug 23, 2007 8:22 pm Post subject: |
|
|
Ok, thanks. I'll rep you as soon as I can.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25794 Location: The netherlands
|
Posted: Thu Aug 23, 2007 8:55 pm Post subject: |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 24, 2007 5:25 am Post subject: |
|
|
here is a program i made not long ago but i as to lazy to finish
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
|
|
Back to top |
|
 |
muffinman177 Master Cheater
Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
Posted: Fri Aug 24, 2007 9:19 am Post subject: |
|
|
Thanks guys.
|
|
Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Aug 24, 2007 10:35 pm Post subject: |
|
|
gecursorpos(pos);
setcursorpos(pos.x,pos.y);
or
setcursorpos(x,y,0,0,0);
x:=
y:=
|
|
Back to top |
|
 |
|