Zud120 Posted August 18, 2014 Share Posted August 18, 2014 Should that be a certain part of the code is repeated an infinite number of times until the screen displays a certain image, and it is this part of the code should be repeated endlessly until poyaleniya Pictures: Like. And then did not come back to the beginning of the code $refresh = _ImageSearch("refresh.bmp",1,$x,$y,1) if $refresh = 1 Then MouseClick("left",$x,$y,1,1) Sleep(1000) $news = _ImageSearch("news.bmp",1,$x,$y,1) If $news = 1 Then MouseClick("left",$x,$y,1,0) Sleep(1200) $like = _ImageSearch ("like.bmp",1,$x,$y,1) if $like = 1 Then MouseClick("left",$x,$y,1,0) Link to comment Share on other sites More sharing options...
corgano Posted August 18, 2014 Share Posted August 18, 2014 Look in the help file for "loops", or type "for" in SciTE and hit F1. The help file has examples with every function, and should get you started. 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
MikahS Posted August 18, 2014 Share Posted August 18, 2014 While 1 WEnd Do Until Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 18, 2014 Moderators Share Posted August 18, 2014 Zud120.We do not support the automation of "Like" buttons - and I will not go into how sad it is that you feel the need to do it. Thread locked. Your "locked thread" percentage is not looking too good at the moment - please try not to come to my attention again in the near 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