Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delay Issue in If-else routine
#1
Greetings,

Below is a code extract that I have been using successfully for a while now.
However, there is a significant delay somewhere in the if the if routine I believe, not sure.

Macro RO Sales gDN
Code:
Copy      Help
,;;Click Next
,Htm e15=htm("INPUT" "_ctl0_cphMain_btnNext" "" w4 "0" 55 0x121 50)
,e15.Click
,
,;wait 5
,int found=0
,int w3=win("Internet Explorer" "IEFrame")
,Htm e18=0
,rep 10
,,Htm e50=htm("INPUT" "rbnTrue1" "" w3 "0" 3 0x101 10)
,,if e50 ;;page "Question Time! -*"
,,,found=1
,,,e50.Click
,,,;wait 1
,,,Htm e22=htm("INPUT" "btnSubmit" "" w3 "0" 5 0x121 10)
,,,e22.Click
,,,;wait 3
,,,e18=htm("INPUT" "btnNext" "" w3 "0" 15 0x101 10)
,,,;wait 3
,,,e18.Click
,,,break
,,else
,,,;wait 5
,,,e18=htm("INPUT" "btnNext" "" w3 "0" 15 0x101 10)
,,,;wait 3
,,,if e18 ;;page "select_product -*"
,,,,found=2
,,,,e18.Click
,,,,break
,,,else
,,,,wait 0.5
,,,,continue
,,if(!found) mes "error"
,
,;wait 30 WT w4 "view_policy_details - Windows Internet Explorer"
,int w6=wait(0 WV win("view_policy_details - Windows Internet Explorer" "IEFrame"))
,;wait 3
,;Click 'OK'
,Htm e19=htm("INPUT" "btnNext" "" w6 "0" 2 0x121 50)
,e19.Click
Best Regards,
Philip


Forum Jump:


Users browsing this thread: 3 Guest(s)