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 


getting mouse X,Y with delphi

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

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sun Aug 26, 2007 11:38 pm    Post subject: getting mouse X,Y with delphi Reply with quote

i dont realy know if this sould be on flash hacking forum or here... but w\e.

im building a trainer to a flash game, it looks like this:

well i want to make a hack that will move the character to where the mouse is. i alredy got the object name containing the x and y of character.
what i need to do is to find the x and y of mouse inside the flash zone only, not at all the form. this is the code changes the Y, **** means the place where i should put the X of mouse inside the flash zone.
Code:
shockwaveflash1.getvariable(
'player1._y'
);
shockwaveflash1.setvariable(
'player1._y',
****
);


so if some1 know what should i do... cause im a newbie with delphi Razz
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

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

PostPosted: Sun Aug 26, 2007 11:40 pm    Post subject: Reply with quote

if your sure thats the variable so u just need
Code:
shockwaveflash1.getvariable(
'player1._x'
);
shockwaveflash1.setvariable(
'player1._x', Integer
);

i guess Rolling Eyes
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sun Aug 26, 2007 11:47 pm    Post subject: Reply with quote

If you want the Mouse X and Y use the variable mouse._x/y. (I think.)
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Mon Aug 27, 2007 12:14 am    Post subject: Reply with quote

symbol: how do i GET the mouse x and y, not how i USE them.
xenephobe: use mouse._x where? in the delphi script? or on the shockwaveflash object?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Mon Aug 27, 2007 12:20 am    Post subject: Reply with quote

You can use the API GetCursorPos() to get the (x,y) of the mouse on the total screen, and then calculate it for the shockwave component.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Mon Aug 27, 2007 12:27 am    Post subject: Reply with quote

aha.
heres a helpful answer. Very Happy
but can some1 explain what code do i need to put, cause i dont know delphi much.
i add an event on form mouse move then what i need to write there?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Mon Aug 27, 2007 12:46 am    Post subject: Reply with quote

On the GetVariable/SetVariable
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Mon Aug 27, 2007 1:11 am    Post subject: Reply with quote

oh.
rly?
do i need to add stuff inside the () or add something after the call to the api?
and how do i call it? just write it name?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Mon Aug 27, 2007 2:05 am    Post subject: Reply with quote

Before the setVariable, you put GetCursorPos function, and calculate the (x,y) for the shockwave component itself. Just play with your shockwave's left and top properties, and your form's top and left.
Back to top
View user's profile Send private message
Tigran
Advanced Cheater
Reputation: 0

Joined: 13 Feb 2007
Posts: 95
Location: Gunz Online

PostPosted: Mon Aug 27, 2007 4:52 am    Post subject: Reply with quote

assaf84 wrote:
Before the setVariable, you put GetCursorPos function, and calculate the (x,y) for the shockwave component itself. Just play with your shockwave's left and top properties, and your form's top and left.


ooh.. ty :p now i get it lol
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Mon Aug 27, 2007 5:03 am    Post subject: Reply with quote

ahhh no1 give me helpful stuff here.
cant some1 just post the code?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger 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