Delay 2000
MoveTo 103, 66
Delay 200
LeftClick 1 //点击浏览器左上角标签
Delay 500
MoveTo 68, 340
Delay 500
LeftClick 1 //点击收通知
Delay 20000
//color = GetPixelColor(1134,453)
//MessageBox(color)
Do While True
//判断颜色
IfColor 1150,453,"000000",0 Then //没有新通知
//颜色一样
Delay 60000
Delay 2000
MoveTo 103, 66
Delay 200
LeftClick 1 //点击浏览器左上角标签
Delay 500
MoveTo 68, 340
Delay 500
LeftClick 1 //点击收通知
Delay 80000
Else
GetCursorPos x, y
Call Plugin.Media.Vol(100)
Call Plugin.Media.Beep(1046, 200)
Call Plugin.Media.Beep(1175, 200)
Call Plugin.Media.Beep(784, 200)
Call Plugin.Media.Beep(1175, 200)
Call Plugin.Media.Beep(1318, 200)
Call Plugin.Media.Beep(1568, 200)
Call Plugin.Media.Beep(1397, 200)
Call Plugin.Media.Beep(1318, 200)
Call Plugin.Media.Beep(1046, 200)
Call Plugin.Media.Beep(1175, 200)
Call Plugin.Media.Beep(1568, 200)
GetCursorPos xx, yy
If x<>xx Then
//满足条件,执行下面的脚本
Exit Do
End If
//通过判断表达式的取值,来执行后面的动作或控制
End If
Loop
Delay 1800
//颜色不一样
直接看代码完事~