SwordHunter4Ever Posted July 26, 2008 Share Posted July 26, 2008 I have my computer look for a certain pixel color, when it finds it I need it to click above and to the right of that point. Here is my code so far, any help would be great =] $pixelSearch = PixelSearch( 0, 195, 1419, 875, 0x38D878 ) If @error Then $i = $i + 1 EndIf If Not @error Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) $i = $i + 1 EndIf As you can see I pixel search for a color. If its not found then it adds 1 to my i value and repeats (this is done in a part of the script you can't see). If it does find the value though it clicks exactly where that pixel is, however I want it to click +38, -45 from that position. how would I go about doing this? If you could just edit my coding and repost it that would be great, this should be pretty simple but I must just be overlooking it or something Thanks guys, - Derek. Link to comment Share on other sites More sharing options...
BrettF Posted July 26, 2008 Share Posted July 26, 2008 MouseClick("left",($pixelSearch[0]+38),($pixelSearch[1]-45),1,0) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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