SetSimMode 2
//获取窗口位置
hwnd = Plugin.Window.MousePoint
sRect = Plugin.window.GetClientRect(Hwnd)
arr1 = split(sRect, "|")
TracePrint arr1 (0)
TracePrint arr1(1)
MoveTo arr1(0), arr1(1)
Delay 200
左上角X = arr1(0) + 900
左上角Y = arr1(1) + 480
右下角X = arr1(0) + 1000
右下角Y = arr1(1) + 580
中心X =arr1(0) + 960
中心Y =arr1(1) + 540
Do
FindColorEx 左上角X, 左上角Y, 右下角X, 右下角Y, "1500FF", 0, 0.1, intX, intY
If intX >= 0 Then
// TracePrint "找到"
// MoveTo intX, intY
坐标差X = intX - 中心X
坐标差Y = intY - 中心Y
MoveR 坐标差X, 坐标差Y+50
LeftClick 1
End If
FindColorEx 左上角X, 左上角Y, 右下角X, 右下角Y, "4555DF", 0, 0.5, intX, intY
If intX >= 0 Then
TracePrint "找到"
// MoveTo intX, intY
坐标差X = intX - 中心X
坐标差Y = intY - 中心Y
MoveR 坐标差X,坐标差Y+50
LeftClick 1
End If
//
// FindColorEx 左上角X, 左上角Y, 右下角X, 右下角Y, "B34249", 0, 0.5, intX, intY
// If intX >= 0 Then
// TracePrint "找到"
// MoveTo intX, intY
// 坐标差X = intX - 中心X
// 坐标差Y = intY - 中心Y
// MoveR 坐标差X/10, 坐标差Y/10
// LeftClick 1
// End If
//
// FindColorEx 左上角X, 左上角Y, 右下角X, 右下角Y, "DA2410", 0, 0.5, intX, intY
// If intX >= 0 Then
// TracePrint "找到"
// MoveTo intX, intY
// 坐标差X = intX - 中心X
// 坐标差Y = intY - 中心Y
// MoveR 坐标差X/10, 坐标差Y/10
// LeftClick 1
// End If
Delay 50
Loop
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
http://news.sinovision.net/politics/201801/00430138.htm