Reptos Posted January 2, 2016 Share Posted January 2, 2016 Hello again! I'm trying to figure out how i return to the If not @error Part of this script if it doesn't find the pixel. Basically the script searches for a pixel and if it finds it it clicks it then its the loop. If it doesn't it refreshes the page and then ( BLAH ) ? ??? I need it to refresh the page and then re-try the first part of the script again. Here is my attempt Script : While 1 WinActivate("ourWorld") Sleep(4000) $cords = PixelSearch(845, 222,1000, 292,0xF0D826) ; mp If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf If (@error) Then MouseClick("Left",77, 43) ; refresh button Sleep(950) MouseClick("Left",692, 238) ; return to menu Loop If Not (@error) Link to comment Share on other sites More sharing options...
kaisies Posted January 2, 2016 Share Posted January 2, 2016 ourworld.com is a flash game... is this what that's for? Link to comment Share on other sites More sharing options...
Reptos Posted January 2, 2016 Author Share Posted January 2, 2016 ourworld.com is a flash game... is this what that's for?Yes making a simple program for it Link to comment Share on other sites More sharing options...
kaisies Posted January 2, 2016 Share Posted January 2, 2016 Yes making a simple program for it You should take a look at the forum rules then. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 2, 2016 Moderators Share Posted January 2, 2016 Reptos,kaisies is quite right - please read the Forum rules - particularly the bit about not discussing game automation - before you post again. 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