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/
|
Posted: Sun Aug 26, 2007 11:38 pm Post subject: getting mouse X,Y with delphi |
|
|
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
|
|
Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Aug 26, 2007 11:40 pm Post subject: |
|
|
if your sure thats the variable so u just need
Code: | shockwaveflash1.getvariable(
'player1._x'
);
shockwaveflash1.setvariable(
'player1._x', Integer
); |
i guess
|
|
Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Sun Aug 26, 2007 11:47 pm Post subject: |
|
|
If you want the Mouse X and Y use the variable mouse._x/y. (I think.)
|
|
Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Mon Aug 27, 2007 12:14 am Post subject: |
|
|
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 |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Mon Aug 27, 2007 12:20 am Post subject: |
|
|
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 |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Mon Aug 27, 2007 12:27 am Post subject: |
|
|
aha.
heres a helpful answer.
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 |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Mon Aug 27, 2007 12:46 am Post subject: |
|
|
On the GetVariable/SetVariable
|
|
Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Mon Aug 27, 2007 1:11 am Post subject: |
|
|
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 |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Mon Aug 27, 2007 2:05 am Post subject: |
|
|
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 |
|
 |
Tigran Advanced Cheater
Reputation: 0
Joined: 13 Feb 2007 Posts: 95 Location: Gunz Online
|
Posted: Mon Aug 27, 2007 4:52 am Post subject: |
|
|
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 |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Mon Aug 27, 2007 5:03 am Post subject: |
|
|
ahhh no1 give me helpful stuff here.
cant some1 just post the code?
|
|
Back to top |
|
 |
|