And this is a sample of using it in AA script
Once you enable this code and go in to game window
it will set cursor at specified position, with holding the left mouse button down.
newmem:
// Preparing variables
mov eax,MOUSEEVENTF_ABSOLUTE
or eax,MOUSEEVENTF_LEFTDOWN
or eax,MOUSEEVENTF_MOVE
mov dword ptr [dwFlags],eax
mov dword ptr [dyc],00003000 // cursor pos y
mov dword ptr [dxc],00002000 // cursor pos x
mov dword ptr [dwData],00000000
call GetMessageExtraInfo
mov dword ptr [dwExtraInfo],ecx
// pushing them into stack for function use
push dword ptr [dwExtraInfo]
push dword ptr [dwData]
push dword ptr [dyc]
push dword ptr [dxc]
push dword ptr [dwFlags]
call mouse_event // Call the API
//wait 4 sec for next loop
push 1000
call sleep
jmp newmem
ret
There also should be a other ways too like sending messages to window or call sendinput function which is more complicated that i dont know about it si much.
I hope it helps. _________________
My special thanx to Cheat Engine and its developers. It helps me do the hard and boring but valuable process of understanding the code, easily and with fun.
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