MasonMill Posted March 26, 2010 Posted March 26, 2010 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 sleep(5000) send("{ESCAPE}") sleep(1000) MouseClick("Left", $message[0], $message[1], 1, 0) sleep(1000) send("{ENTER}") Sleep(1000) 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.
PsaltyDS Posted March 26, 2010 Posted March 26, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now