affelol45 Posted July 17, 2012 Share Posted July 17, 2012 (edited) Hey Guys Im pretty new at this AutoIT and I have 2 questions. First, is it possible to do "If Pixelsearch(x, y, 0x00000) and Pixelsearch(x, y, 0x10000) then /do-something? So if both Pixel matches then do something otherwise ignore? And second, I'm currently using 10 scripts'ish on my PC and it's really messy and hard to stop if something goes wrong, they all look like this'ish: i = 0 While $i <= 10 $coord = PixelSearch(481, 482, 549, 495, 0XBC9973) If Not @error Then MouseClick("primary", $coord[0], $coord[1], 1, 0) Is it possible to make all of them into 1 script while they still do the same ? Edited July 17, 2012 by affelol45 Link to comment Share on other sites More sharing options...
bogQ Posted July 17, 2012 Share Posted July 17, 2012 first question: $a = PixelSearch() $b = PixelSearch() If IsArray($a) And IsArray($b) Then ;something Else EndIf second question: probably but if anyone is to help you they need to add more info for about what are you trying to do TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
affelol45 Posted July 17, 2012 Author Share Posted July 17, 2012 Ahh okay thanks As for the 2nd question, I've made a "Whack-a-mole" game my self, and to test it out I made autoit click the moles so I could advance and test it abit. So I have 10 scripts, each searching for 1 pixel each (different colored moles) and when they find it they click it Link to comment Share on other sites More sharing options...
pieeater Posted July 17, 2012 Share Posted July 17, 2012 may i redirect you to the Reading and Comprehension Test? [spoiler]My UDFs: Login UDF[/spoiler] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 17, 2012 Moderators Share Posted July 17, 2012 affelol45,As pieeater has mentioned, there is a strict "no game automation" rule here. It does not matter if it is your own game, this rule is "zero tolerance" and strictly enforced. Please read those Forum Rules and stick to them in future. 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