Jump to content
Sign in to follow this  
Ramin

help using _WinAPI_Mouse_Event instead of MouseMove

Recommended Posts

Ramin

Hi guys i have question

i want to move my cursor to specific coordinates without using mousemove. i want to move my cursor to that specific coordinates with using _WinAPI_Mouse_Event

while 1
    ;$head_search=PixelSearch( 0, 0, 800, 600,0x967B72,10)
    $head_search=PixelSearch( 0, 0, 800, 600,0x00F7FF,10)
    if not @error then
       global $aPos = MouseGetPos()
$aimx = $aPos[0] - $head_search[0]
$aimy =  $aPos[1] - $head_search[1]
        _WinAPI_Mouse_Event($MOUSEEVENTF_MOVE , $aimx , $aimy )
    EndIf
    sleep (5)
WEnd

i wrote this but it doesnt work can anyone help me plz ? how i can replace _WinAPI_Mouse_Event with specific coordinates acoording to the code.

help me plz i need it so much

Share this post


Link to post
Share on other sites
JLogan3o13

@Ramin you still haven't read the forum rules you were pointed to, as this is the exact same code from your previous thread that was closed. Do not post a third time on this subject.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×