Hi there,
I am new to autoit, i have script to run macro in excel, the general process is once macro is run, there will be a pop up form need username/pwd and then process
but seems the code is not continue after the script MsgBox() line, do you have any idea how i can auto fill the user id and pwd part?
much appreciated!
the script is like below:
#include <Excel.au3>
Local $oExcel_1 = _Excel_Open()
Local $sWorkbook = @ScriptDir&"\57799_Generic OSA.xlsm"
Local $oWorkbook = _Excel_BookOpen($oExcel_1,$sWorkbook)
WinActivate($oWorkbook)
Sleep(3000)
$oExcel_1.run("DoIt")
WinWaitActive("OSA Logon Net35")
; seems line below this are not executed
MsgBox(0,"excel shown","111")
ControlSetText("OSA Logon Net35","","[CLASS:WindowsForms10.EDIT.app.0.378734a; Instance:1]","e123456")
ControlSetText("OSA Logon Net35","","[CLASS:WindowsForms10.EDIT.app.0.378734a; Instance:2]","e123456")
_Excel_Close($oExcel_1,Default,True)