案件精灵9判断坐标颜色变化发出提示音(按键精灵9接收通知必备)

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
    //颜色不一样	

直接看代码完事~

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值