varmil9 Posted March 10, 2013 Share Posted March 10, 2013 (edited) Hi guys! I'm ultra noob in programming, so pls don't judge me, this is the first thing I ever did. Yet, I have menaged to achieve my goal with a small problem. A set of clicks on the screen, depending on the color of the pixel. In other words, if the color is red(16711680), restart the script, and if it's not, continue with the script. I don't know how or which command restarts the script. I couldn't find it in help files and forums for hours now... Thx in advance sleep(5000) MouseClick("left", 1418, 49, 1) sleep(15000) $n = PixelGetColor(963, 411) Switch $n Case 16711680 MsgBox(0, "It's RED, restart script!", $n) >>>>>missing line Case Else MsgBox(0, "It's GREEN, continue!", $n) EndSwitch MouseClick("left", 862, 415, 1) sleep(10000) MouseClick("left", 647, 891, 1) send ("45") MouseClick("left", 572, 925, 1) MouseClick("left", 1058, 493, 1) Edited March 10, 2013 by varmil9 Link to comment Share on other sites More sharing options...
FireFox Posted March 10, 2013 Share Posted March 10, 2013 Hi, Welcome to the autoit forum What do you need this script for? Br, FireFox. Link to comment Share on other sites More sharing options...
varmil9 Posted March 10, 2013 Author Share Posted March 10, 2013 I need it for automatisation of buying some kind of points, on "earn on the internet" type of website... I wanted to make, that whenever I get enough credits there, I buy a point... It's nothing illegal if thats what you ask Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 10, 2013 Moderators Share Posted March 10, 2013 varmil9,I need it for automatisation of buying some kind of points, on "earn on the internet" type of websiteNot something we knowingly support here - if you want to earn points, wear out your own fingers. Thread closed. 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