Krackin Posted January 17, 2009 Share Posted January 17, 2009 (edited) What Im Looking To Do Is Get A Script that will snap to a color within a set distance away from the center of the screen is it possible? it's for an fps i want it to search by my crosshair then snap to the closest set color and stick to it until the key is pressed again PixelSearch ( 482,384, 512,354, 542,384, 512,414, 247,247,0? <- is that right? those are the screen pos and the rgb color of the yellow i need Edited January 17, 2009 by Krackin Link to comment Share on other sites More sharing options...
Aceguy Posted January 17, 2009 Share Posted January 17, 2009 look @ pixelsearch, mousemove in the helpfile. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Krackin Posted January 17, 2009 Author Share Posted January 17, 2009 (edited) look @ pixelsearch, mousemove in the helpfile.okay thx for the tip you wouldnt happen to have a link on the basic setup of auto it and the setup for a script or somthing would you? Edited January 17, 2009 by Krackin Link to comment Share on other sites More sharing options...
FireFox Posted January 17, 2009 Share Posted January 17, 2009 @Krackin For the distance use : Local $last_pos[3], $lastdistance While 1 $current_pos = MouseGetPos() $distance = Sqrt(($current_pos[0] - $last_pos[0]) ^ 2 + ($current_pos[1] - $last_pos[1]) ^ 2) $mousedist = $distance + $lastdistance $lastdistance = $mousedist $last_pos = $current_pos TrayTip('Mouse dist (pixels)', $mousedist, 0, 1) WEnd Cheers, FireFox. Link to comment Share on other sites More sharing options...
Aceguy Posted January 17, 2009 Share Posted January 17, 2009 first of all, what is the colour your searching for.? i know YELLOW. but you need the Colour value of pixel to find (in decimal or hex).... also, the coordinates you gave, are they... 482,384 512,354 542,384 512,414 247,247 [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Krackin Posted January 18, 2009 Author Share Posted January 18, 2009 (edited) first of all, what is the colour your searching for.? i know YELLOW. but you need the Colour value of pixel to find (in decimal or hex)....also, the coordinates you gave, are they...482,384512,354542,384512,414247,247That yellow Edited January 18, 2009 by Krackin Link to comment Share on other sites More sharing options...
Krackin Posted January 23, 2009 Author Share Posted January 23, 2009 Bump Link to comment Share on other sites More sharing options...
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