嗨,我是新手使用自动,所以请你们温柔:) 所以我制作了一个flash的互联网浏览器脚本,它完全适用于单个像素搜索循环,但如果另外两个不同的像素搜索出现问题,它将无法工作吗? :(
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 ;==>Start
Func _Exit()
Exit
EndFunc ;==>_Exit