你好,我有两个问题,还请帮我答疑解惑,万分感谢!!!
一、
hwnd=330968
SetSimMode 2//键盘设置为超级模式
Call Plugin.Window.Active(Hwnd)
句柄都设置完了,也激活了,可是下面的按M键就是没有反应,这两种方式都不行,请问怎么回事?
Call Plugin.Bkgnd.KeyPress(Hwnd, 77)
keypress 77,1//按M键,切换地图模式
二、
currentplantpoint="243,304;279,289;291,309"
OnePoint = Split(CurrentPlantPoint, ";", - 1 , 1)
PointCount = UBound(OnePoint)+1
For PointCount
temp = Split(OnePoint(pos), ",", - 1 , 1)
OnePoint_XY(pos2) = temp(0)-----------
此行在调试时显示:类型不匹配: 'ONEPOINT_XY',
OnePoint_XY(pos2 + 1) = temp(1)-----------
此行在调试时显示:类型不匹配: 'ONEPOINT_XY',
pos = pos + 1
TracePrint pos
pos2 = pos2 + 2
TracePrint pos2
Next
MouseX = OnePoint_XY(i) -----------
此行在调试时显示:类型不匹配: 'ONEPOINT_XY',
MouseY = OnePoint_XY(i + 1)-----------
此行在调试时显示:类型不匹配: 'ONEPOINT_XY',
MoveToS MouseX, MouseY