大家好,欢迎来到IT知识分享网。
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 //颜色不一样
直接看代码完事~
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/119315.html