Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
macro converted to function with an error
#1
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     Help - how to add the trigger to the macro
Code:
Copy      Help
#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
Code:
Copy      Help
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
Code:
Copy      Help
int w3=win("- Word" "OpusApp")
lef 24 40 w3 1
lef 62 249 w3 1
lef 549 277 w3 1
int w4=wait(29 win("Save as" "#32770"))
'"YW"          
lef 495 458 w4 1

int w1=act(win("Word" "OpusApp"))
'AV            
'c
#2
Need to set speed with spe.
#3
Thank you very much and have been running perfectly Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)