darkangel37 Posted January 2, 2015 Share Posted January 2, 2015 (edited) Hi I'm newbie using autoit so please guys be gentle ) so i make a flash internet browser script it perfectly works on single pixelsearch loop , but I cannot make it work if I put another 2 pixelsearch is there something wrong? help here's my script HotKeySet ("{HOME}", "Start") HotKeySet ("{END}", "_Exit") While 1 Sleep(200) WEnd Func Start() While 1 $colorgreen = PixelSearch ( 0,0, @DesktopWidth, @DesktopHeight, 0x00FF00) If Not @error Then MouseClick ( "Left" , $colorgreen[0], $colorgreen[1] , 1,1) ;spam left click on the green-color areas Sleep(100) Else PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xFF0063) If Not @error Then SoundPlay(@WindowsDir & "\media\tada.wav", 1) ;Alert me using very loud noise when it founds pink color lol Sleep(100) Else Send("{F5}") ;Refresh button EndIf EndIf WEnd EndFunc Func _Exit() Exit EndFunc Edited January 2, 2015 by darkangel37 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 2, 2015 Moderators Share Posted January 2, 2015 darkangel37 (or should I call you lenzki?),Opening another forum account to post essentially the same question is not a good idea. But as I am loath to start off the new year with a ban, I will just warn you that you are now firmly on my radar, so please be careful 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