Wllwllwll Posted March 6, 2019 Share Posted March 6, 2019 When $pixels[0] returns an error the program crashes. Question: When PixelSearch doesn't find the given color how do i handle the error that $pixels[0] throws? without manually reseting the program? $pixels = PixelSearch(631,332,732,428,0x391E14,1) MouseClick("left",$pixels[0],$pixels[1],1,10) Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 6, 2019 Share Posted March 6, 2019 @Wllwllwll Enjoy the permaban Earthshine and jchd 2 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Wllwllwll Posted March 6, 2019 Author Share Posted March 6, 2019 please only helpfull replies Link to comment Share on other sites More sharing options...
Wllwllwll Posted March 6, 2019 Author Share Posted March 6, 2019 i new on this forum. please explain why i cant ask any more question now that i gave the impression that i would use a perticular piece of code for something "illigal" do you want me to lie to you the whole time? make a new acc? find out myself? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 6, 2019 Share Posted March 6, 2019 44 minutes ago, Wllwllwll said: please only helpfull replies This one Skeletor 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 6, 2019 Moderators Share Posted March 6, 2019 Wllwllwll, I see you did not read those rules to which you linked very carefully - you missed the part that says: "Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above" Do NOT start another thread on this - our patience has limits. 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