ZanaxNL Posted September 2, 2010 Share Posted September 2, 2010 (edited) Case $Button4 Do Sleep(100) Until _IsPressed(01) $pos = MouseGetPos() $col = Pixelgetcolor($pos[0],$pos[1]) MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) Msgbox(0, "Color",$col) I need to find the color of where u pressed on the screen. but pixelgetcolor does strange, i dont get a good valid color. Msgbox of $col says : 16777215 or something else like 15000142. ** if its wrong say it, and maybe fix it for me : ( then i have to need pixelsearch(,,,#col) something How to fix this? So i can use it for PixelSearch. Thanks u ! Zanax Edited September 2, 2010 by ZanaxNL Link to comment Share on other sites More sharing options...
JohnOne Posted September 2, 2010 Share Posted September 2, 2010 ConsoleWrite("0x" & StringTrimLeft(Hex(PixelGetColor(10,10)),2)) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ZanaxNL Posted September 2, 2010 Author Share Posted September 2, 2010 So: ConsoleWrite("0x" & StringTrimLeft(Hex(PixelGetColor($pos[0],$pos[1])),2)) ? how to use it my script? i need to search color on the place where i clicked. then he most search color and click color if i pressed other button. Doesnt now what consolewrite will do ( with helper ) Zanax Link to comment Share on other sites More sharing options...
ZanaxNL Posted September 2, 2010 Author Share Posted September 2, 2010 found this: http://www.autoitscript.com/forum/index.php?showtopic=63318 So now i get better results. like FFFFFF or 62321B i gues that is what pixelsearch needs xd i gues? can someone give a example of pixelsearch $sColor and then click if found(mouse on it) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 2, 2010 Share Posted September 2, 2010 Decimal or Hex is the same. The help for PixelSearch even says so:Colour value of pixel to find (in decimal or hex).Get new glasses people! .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...
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