eug2b Posted April 18, 2011 Share Posted April 18, 2011 Hello. It is necessary for me to find an element in an active window (Pink color in this case is a background, the picture very small). Help to be defined what functions correctly to use for search.search.bmp Link to comment Share on other sites More sharing options...
Skitty Posted April 18, 2011 Share Posted April 18, 2011 (edited) Hello. It is necessary for me to find an element in an active window (Pink color in this case is a background, the picture very small). Help to be defined what functions correctly to use for search. $coord = PixelSearch( 0, 0, 20, 300, 0xFF00FF, 50) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) MouseMove($coord[0],$coord[1],100) EndIf I cant see why this doesn't work on my pc but it should... maybe its cause im using a not so popular mouse driver... Edited April 18, 2011 by System238 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 18, 2011 Moderators Share Posted April 18, 2011 eug2b,Welcome to the AutoIt forum. If this is the only area of the window that uses these particular colours then use PixelSearch to look for the specific colours.If there is a lot of text in this colour, then you could:- Use PixelCheckSum - but this could be a bit long-winded- Use this DLL to search.What window do you want to search? 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...
eug2b Posted April 19, 2011 Author Share Posted April 19, 2011 (edited) I want to use it for game, during that moment when in a window of my game there is a sign as on a picture, it is necessary to stop a carried out cycle. Nevertheless I tend to use of PixelCheckSum. It would be desirable more in detail, whether I can make the checksum cache of the image of a symbol and check the set area on coincidence. Edited April 19, 2011 by eug2b Link to comment Share on other sites More sharing options...
Skitty Posted April 19, 2011 Share Posted April 19, 2011 (edited) I want to use it for game, during that moment when in a window of my game there is a sign as on a picture,it is necessary to stop a carried out cycle. Nevertheless I tend to use of PixelCheckSum.It would be desirable more in detail, whether I can make the checksum cache of the image of a symbol and check the set area on coincidence.TrollWhats with game automation on this forum...Edit: Now you're just being creepy dude... Edited April 19, 2011 by System238 Link to comment Share on other sites More sharing options...
eug2b Posted April 19, 2011 Author Share Posted April 19, 2011 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