Sign in to follow this  
Followers 0
Gordoni

Clicking on moving object

8 posts in this topic

#1 ·  Posted (edited)

[*]

Posted Image

[*]

Posted Image

[*]

Posted Image

[*]

I have that all and i dont know how to write command with script checking where is malah and click on she .

Edited by Gordoni

Share this post


Link to post
Share on other sites



still need help please


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hmm

PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )

Can i get any example for that . Malah is moving so how to set right , top etc . And i need that all?

Edited by Gordoni

Share this post


Link to post
Share on other sites

Any 1 can help ? trying to that more than 2 weeks . I am new and trying to learn that


Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

it works ..I tested using the third image in post 1 and selecting a pixel on his head

HotKeySet("{esc}","_end")
  while 1
      $fov=2000
      $shadowMDLS = "0Xfffef6"
  $mPos = MouseGetPos()
          $coords = PixelSearch($mPos[0]-$fov, $mPos[1]-$fov, $mPos[0]+$fov, $mPos[1]+$fov, $shadowMDLS, 1, 1)
      If IsArray($coords) Then
          MouseClick("none", $coords[0], $coords[1] + 2, 2, 1)
          endif
      wend
      
  
  
      func _end()
          Exit
          EndFunc

just change the mouseclick

Edited by bluerein

Share this post


Link to post
Share on other sites

Ps : i arealy play'd d2 and this is the color of the hand mouse .... You have to take circlet to watch colors.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0