我用tkinter编写了一个简约的python程序,当点击一个按钮时它会给出一个示例文本。我现在想的AutoIt执行该程序,然后单击按钮:鼠标点击按钮
#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>
CalcTime()
Func CalcTime()
Run("dist/min_tk_app.exe")
Local $aPos = ControlGetPos("[CLASS:Button; INSTANCE:1]", "", "Edit1")
MsgBox($MB_SYSTEMMODAL, "", $aPos)
MouseClick($MOUSE_CLICK_LEFT, 324, 145, 1)
EndFunc
我收到这个信息:[CLASS:Button; INSTANCE:1]
,通过AutoIt的窗口信息应用。我总是只收到0
作为$aPos
的输出。你知道这是为什么吗?