Jump to content
Sign in to follow this  
Gordoni

Clicking on moving object

Recommended Posts

Gordoni

[*]

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
spudw2k
Gordoni

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
Gordoni

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
bluerein

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
Xav

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.