【 在 iwannabe 的大作中提到: 】
: for x, y in param:
: center_x = int(x) - div_size['width'] / 2
: center_y = int(y) - div_size['height'] / 2
: ...................
按文档说move_to_element_with_offset是Move the mouse by an offset of the
specified element. Offsets are relative to the top-left corner of the element.
但是我这里必须以element中心为原点才能成功呢?
不明白你在说啥, 这代码挺正常的, x, y 是什么意思? 是element的坐标,也许。
你说的你的代码是什么?
--
FROM 124.126.1.*