Jump to content

help using _WinAPI_Mouse_Event instead of MouseMove


 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

@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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...