Jump to content

multi colored pixelsearch loop need advise thanks


Recommended Posts

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 by darkangel37
Link to comment
Share on other sites

  • Moderators

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. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...