02-11-2017, 09:03 AM
I use three macros: Macros1 Macros2 Macros3 performs an operation, QM debug, is successful!
But when I generated the macro exe file, QM remind me to macros2 and macros3 into a function, the result is macros3 can not run properly, there is waiting for a timeout error But if not converted into a function, is successful, I do not know where the problem, Hope someone can help me, thank you very much
Macro Macro1
Trigger SF9
Macro Macro2
Macro Macro3
But when I generated the macro exe file, QM remind me to macros2 and macros3 into a function, the result is macros3 can not run properly, there is waiting for a timeout error But if not converted into a function, is successful, I do not know where the problem, Hope someone can help me, thank you very much
Macro Macro1
Trigger SF9
#region Recorded 2017-02-11 08:37:14
int w1=win("Program Manager" "Progman")
dou 183 131 id(1 w1) 1
int w2=wait(19 win("- Word" "OpusApp"))
lef 677 39 child("" "NetUIHWND" w2) 1
lef 23 83 child("" "NetUIHWND" w2) 1
int w3=wait(23 win("iCatSettingsFrm" "*.Window.*"))
lef 25 6 child("" "*.BUTTON.*" w3 0x0 "wfName=qqButton1") 1
act w2
2
lef 256 97 child("" "NetUIHWND" w2 0x0 "" 2) 1
#endregion
2
mac "Macro2"
Macro Macro2
rep 500
,;int w1=win("PicWordForm" "*.Window.*")
,int w9=act(win("PicWordForm" "*.Window.*"))
,int w1=win("PicWordForm" "*.Window.*")
,lef 31 9 child("" "*.BUTTON.*" w1 0x0 "wfName=btnNext") 1
,
,;lef 520 324 w9 1
,2
,int w=win("MsgForm" "*.Window.*")
,if IsWindowVisible(w)
,,break
int w2=wait(30 WA win("MsgForm" "*.Window.*"))
int w3=win("MsgForm" "*.Window.*")
lef 38 11 child("" "*.BUTTON.*" w3 0x0 "wfName=btnOk") 1
int w4=wait(30 WA win("PicWordForm" "*.Window.*"))
int w5=win("PicWordForm" "*.Window.*")
lef 7 5 child("" "*.Window.*" w5 0x0 "wfName=iCatButton6") 1
2
mac "Macro3"
Macro Macro3