我根据教程所述, 抄了代码,但是提示 类型错误。。如下
SetSimMode 2
//获取窗口坐标
hwnd = Plugin.Window.MousePoint
sRect = Plugin.Window.GetClientRect(Hwnd)
arr1 = plitplit(sRect,"|")
TracePrint = arr1 (0)
TracePrint = arr1 (1)
MoveTo arr1 (0), arr1 (1)
Delay 200
左上角X = arr1(0) + 601
左上角Y = arr1(1) + 392
右下角X = arr1(0) + 800
右下角Y = arr1(1) + 519
FindColorEx 左上角X,左上角Y,右下角X,右下角Y,"272626",0,0.9,intX,intY
If intX >= 0 Then
//找到颜色值
TracePrint "找到"
MoveTo intX,intY
End If