求按键精灵脚本 自动在屏幕上点某一种颜色 要求1秒钟点5-8下

来源:百度知道 编辑:UC知道 时间:2024/06/03 19:06:23
如题

假如你的某点坐标为(100,100) 颜色为 FFF333

代码:
ifcolor 100,100,FFF333,0
moveto 100 100
LeftClick 8
delay 800
endif

//取光标处颜色,把屏幕上的相同颜色全部点一遍
//速率每秒最多8次(视电脑情况而定,可能达不到)
Plugin allx=GetSysInfo.GetScreenResolutionX
Plugin ally=GetSysInfo.GetScreenResolutionY
VBSCall GetCursorPos(sx,sy)
color=GetPixelColor(sx,sy)
VBS x=0:y=0
While y<=ally
While x<=allx
IfColor x y color 0
MoveTo x y
Delay 125
LeftClick 1
EndIf
x=x+1
EndWhile
x=0
y=y+1
EndWhile

这个你可以去找网通的人来帮助你。