当我编写脚本时,它返回预期的编译错误=不需要它时。我该怎么解决?
这是另一个代码中包含的功能。窗口确实存在,我按照所有说明将Autoit Code转换为VBA。
Public Function GenerateDocument()
Dim AutoIt As Object
Set AutoIt = Wscript.CreateObject("AutoITX3.Control")
With AutoIt
.WinExists("PRGX SIM - Payments - Internet Explorer", "Address Combo Contro") 'It generates a problem
.WinWaitActivate("PRGX SIM - Payments - Internet Explorer", "Address Combo Contro") 'Also it
.MouseClick("left",1311,277,1) 'And this one
.MouseUp ("left")
.MouseClick("left",1214,380,1) 'This other one to
.MouseUp ("left")
End With
End Function