我用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
的輸出。你知道這是爲什麼嗎?