用按键精灵,写个简单的跳课脚本 |
您所在的位置:网站首页 › 可以刷课的网址大全 › 用按键精灵,写个简单的跳课脚本 |
1 首先下个按键精灵,随便百度就能下载
4 点击我的脚本新建脚本 ![]()
6. 我自己写的代码,灵活些
![]() Delay 500 Color1 = GetPixelColor(475,510) Color2 = GetPixelColor(479, 520) Color3 = GetPixelColor(950, 650) TracePrint Color1 TracePrint Color2 If ((Color1 = "373834") and (Color2 = "373834")) Then MoveTo 420, 405 Delay 500 LeftClick 1 MoveTo 788, 516 If (Color4 = "2AB5F2") Then MoveTo 529, 831 Delay 1000 LeftClick 1 Else FindPic 1611,98,1910,862,"Attachment:\bb.bmp",0.9,intX,intY If intX > 0 Then MoveTo intX + 27, intY + 27 Delay 4000 LeftClick 1 MoveTo 529, 831 Delay 1000 LeftClick 1 End If End If 9. 第二步 进入循序,一直获取指定左边,元素,看是否出现,判断题,出现先点击A选项,获取失败元素点,有再点B选项,没有跳出循环do Color4 = GetPixelColor(536, 413) If (Color4 = "B1E6FF") Then FindPic 450, 338, 1164, 934, "Attachment:\B1.bmp", 0.9, intX, intY FindPic 450, 338, 1164, 934, "Attachment:\B11.bmp", 0.9, intX2, intY2 If intX > 0 and intY > 0 Then MoveTo intX, intY Else MoveTo intX2, intY2 End If LeftClick 1 Delay 2000 Moveto 531, 521 LeftClick 1 Delay 2000 Color5 = GetPixelColor(536, 413) If (Color5 = "B1E6FF") Then FindPic 450, 338, 1164, 934, "Attachment:\B2.bmp", 0.9, intX, intY FindPic 450, 338, 1164, 934, "Attachment:\B21.bmp", 0.9, intX1, intY1 If intX > 0 and intY > 0 Then MoveTo intX, intY Else MoveTo intX1, intY1 End If LeftClick 1 Delay 1000 LeftClick 1 Delay 1000 MoveTo 531, 521 Delay 1000 LeftClick 1 Delay 1000 LeftClick 1 End If Exit Do End If Delay 2000 Loop 10 第三步 获取完成的右边区域的,绿色元素点坐标,相对位移坐标,到下一个科目,进入开始第一步循环。
|
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |