0

I am trying to automatically click a PictureBox control from an old VB6 application using AutoIt. Window Info finds a control with class ThunderRT6PictureBoxDC and ID 15, and AutoIt successfully hides it if I run...

ControlHide($class, "", "[ID:15]")

However, when I try to click it using:

ControlClick($class, "", "[ID:15]")

...nothing happens - and @error is unset.

Clicking using MouseClick with the control coordinates works, but then I have to make sure that the window isn't covered by anything.

Does anyone know why nothing happens, and what I can do to workaround without resorting to MouseClick?

4

1 回答 1

1

我不知道 AutoIt,但这可能是因为控件是 PictureBox 而不是按钮,因此 Windows 不支持在此控件上“单击”的概念。想不出任何替代的解决方法。

于 2011-03-25T14:40:02.800 回答