jimmys Posted October 12, 2008 Share Posted October 12, 2008 Hey How do i make it look for a colour on the whole screen and whenever it is present click on it. Thanks Link to comment Share on other sites More sharing options...
nf67 Posted October 12, 2008 Share Posted October 12, 2008 PixelSearch is what you're looking for.You can search for it in the helpfile or click here. Link to comment Share on other sites More sharing options...
jimmys Posted October 12, 2008 Author Share Posted October 12, 2008 Thanks Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 12, 2008 Share Posted October 12, 2008 (edited) PixelSearch is what you're looking for.You can search for it in the helpfile or click here.Please don't link to adminscripteditor.com they don't have the latest syntax/version, if you really need online documentation (and I can't understand why that would be), use the official instead Edited October 12, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jimmys Posted October 13, 2008 Author Share Posted October 13, 2008 How do i find the Parameters? like the left coordinate of rectangle. Link to comment Share on other sites More sharing options...
jimmys Posted October 13, 2008 Author Share Posted October 13, 2008 ok i made this but its really slow and the thing its meant to click on is long gone by the time it clicks HotKeySet("{END}","_exit") Func _exit() exit 0 EndFunc While 1 $pixelsearch = Pixelsearch(0, 0, @Desktopwidth, @DesktopHeight, "0xE72262", 5) If Not @error Then MouseClick("left", $pixelsearch[0], $pixelsearch[1] ) Endif Wend Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 13, 2008 Share Posted October 13, 2008 If you are using Vista turn off Aero and it will be much faster. Otherwise make the area you search smaller. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jimmys Posted October 13, 2008 Author Share Posted October 13, 2008 Nope not on vista how do i find the search area? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 13, 2008 Share Posted October 13, 2008 Start Au3Info.exe and set in on the mouse tab and you will se where your mouse is. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jimmys Posted October 13, 2008 Author Share Posted October 13, 2008 (edited) I put my mouse in each coner and got this Top Left 170, 323 Bottom Left 170, 794 Top Right 802, 323 Bottom Right 802, 793 Sorry i'm not very good at this XD Edited October 13, 2008 by jimmys Link to comment Share on other sites More sharing options...
herewasplato Posted October 13, 2008 Share Posted October 13, 2008 I can never remember which numbers to use.Try Top Left 170, 323 and Bottom Right 802, 793$pixelsearch = Pixelsearch(170, 323, 802, 793, "0xE72262", 5)I figured out which numbers to use once and wrote this script:http://www.autoitscript.com/forum/index.php?showtopic=19722...that is what I use anytime I need to wrote a PixelSearch line of code. [size="1"][font="Arial"].[u].[/u][/font][/size] 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