Jump to content
Sign in to follow this  

array plus certain coords

Recommended Posts


Hi, if i brought up an array of a certain colored tab, can i say click a certain distance from it? Well i know you can, but could someone help me find where to search in help file for it please? Like for example i have:

Func PrivateMessage()
    $message = PixelSearch(700, 800, 1215, 827, 0xB61D1D, 50)
    If IsArray($message) Then
      MouseClick("Left", $message[0], $message[1], 1, 0)
      send("Leave me a message and ill get back with you")

then i want to click a certain distance from that red tab that popped up.

Share this post

Link to post
Share on other sites

Just do the math. For example, if it's 200 pixels down and 300 pixels to the left:

MouseClick("Left", $message[0] - 300, $message[1] + 200, 1, 0)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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