nak Posted December 21, 2006 Share Posted December 21, 2006 Hi I am trying to get a mouse to move to a certain colored pixel and left click once but im not particularly bright and dont really get how to implement this. Im pretty sure that it involves the pixelsearch function but tbh I just dont understand how to get it working. Ive had a look at some of the other scripts available and am pretty sure i could plagiarise someone elses work but i wouldnt understand why i had done this, so if someone one could explain in terms that your 80 year old granny could understand i would be most grateful. Link to comment Share on other sites More sharing options...
Gondus Posted December 21, 2006 Share Posted December 21, 2006 search the help files for pixilsearch, shows a basic example how to use it -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran Link to comment Share on other sites More sharing options...
theguy0000 Posted December 21, 2006 Share Posted December 21, 2006 (edited) $search = PixelSearch (0, 0, @DesktopWidth, @DesktopHeight, 0x00FF00) If @error Then MsgBox (48, "Error", "Pixel not found.") Else MouseClick ("left", $search[0], $search[1]) EndIf chane 0x00FF00 to the hex value of the color you want to find. Edited December 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN 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