View previous topic :: View next topic |
Author |
Message |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Jan 27, 2011 3:03 pm Post subject: how do i define POINT structure in AA? |
|
|
how do i define POINT structure(win32api) in AA.
ex in C:-
POINT m; // I need AA equivalent to this line..
and
how to use m.x and m.y in AA..
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Thu Jan 27, 2011 4:20 pm Post subject: |
|
|
Code: |
alloc(mypoint,8)
label(mypoint_x)
label(mypoint_y)
mypoint:
mypoint_x:
dd 0
mypoint_y:
dd 0
|
will allocate a POINT structure and initializes it to 0,0
you can access the X and Y using mypoint_x and mypoint_y
of course, if it's an already allocated thing by the game then you just read it as it is
pointstart+0 = X pointstart+4 = 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 |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Jan 27, 2011 6:16 pm Post subject: |
|
|
can i use
it like this
call GetCursorPos addr mypoint // is this line correct in C it is written as GetCursorPos(&mypoint)
mov dword ptr [eax],mypoint_x
mov dword ptr [ebx],mypoint_y
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25806 Location: The netherlands
|
Posted: Thu Jan 27, 2011 6:18 pm Post subject: |
|
|
Code: |
push mypoint //writes the address of mypoint to the stack
call GetCursorPos //call the function
//mypoint will now contain the x and y coordinates of the mouse
|
_________________
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 |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Jan 27, 2011 7:01 pm Post subject: |
|
|
Thank you..
|
|
Back to top |
|
 |
|