Sign in to follow this  
Followers 0
darkangel37

multi colored pixelsearch loop need advise thanks

2 posts in this topic

#1 ·  Posted (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 by darkangel37

Share this post


Link to post
Share on other sites



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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0