结构体2。先上个例子。
var 座标 = array()
座标["x"] = array("long" = 1, "value" = 0)
座标["y"] = array("long" = 1, "value" = 0)
while(1)
//调用 GetCursorPos() 获取当前鼠标坐标。 API的参数1:struct(数据类型:结构体) pstruct(数据类型:结构体传址)
dllcall("user32.dll", "long", "GetCursorPos", "pstruct", 座标)
traceprint(座标["x"] ["value"] &","& 座标["y"] ["value"])
sleep(1000)
end
var 座标 = array()
座标["x"] = array("long" = 1, "value" = 0)
座标["y"] = array("long" = 1, "value" = 0)
while(1)
//调用 GetCursorPos() 获取当前鼠标坐标。 API的参数1:struct(数据类型:结构体) pstruct(数据类型:结构体传址)
dllcall("user32.dll", "long", "GetCursorPos", "pstruct", 座标)
traceprint(座标["x"] ["value"] &","& 座标["y"] ["value"])
sleep(1000)
end