owh Posted June 7, 2012 Share Posted June 7, 2012 Hello, I have made a pixel search for a game, but the thing is that I want all types of Green colour to be searched by the pixelsearcher, ie: Red= < 30 , Green=255 , Blue= < 30. When I got the hex code: 0x0E4412 this is only one color but I want all of the Green.(as mentioned above). Here is the code with the HEX color:$pos = PixelSearch(0,24,1280,800,0x0E4412,0)Hope you guyz can solve my problem.Pls Reply as soon as possible, I will be keenly waiting. Thanks,OWH Link to comment Share on other sites More sharing options...
Kidney Posted June 7, 2012 Share Posted June 7, 2012 well the fact that you are making this for a game, means that this topic will be locked soon. change the shade-variation to a higher number, i would say 255 but i dont know if that will be too big if a shade difference Link to comment Share on other sites More sharing options...
owh Posted June 7, 2012 Author Share Posted June 7, 2012 @Kidney Can I get an example Pls? Link to comment Share on other sites More sharing options...
Kidney Posted June 7, 2012 Share Posted June 7, 2012 (edited) download this image and view it so that it is full screen:then run this code:For $i = 0 to 100 Step 5 $result = PixelSearch(0, 429, @DesktopWidth, 625, 0xFB7A02, $i) ;the is searching for the orange on the very RIGHT of the image sleep(100) MouseMove($result[0], $result[1]) Nextyou can see that the greater the shade-variant is the farther away from the bright orange the pixel search returns a value.EDIT:obviously, make sure you r only search the area where the image is or it wont show the example lol Edited June 7, 2012 by Kidney Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 7, 2012 Moderators Share Posted June 7, 2012 owh,Game automation is not supported here as you have already been told. Please read the Forum Rules before posting again. Kidney,As you correctly pointed out, the OP's question was in breach of the Forum rules - next time do not offer any help if this is the case. If the OP is unintelligent enough to admit what they are doing is not permitted here, they do not deserve any help. Thread locked.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts