i have created a script for running call traces (QMOB MIN....EXTMTX) in a Nortel MSC...the problem is that the script is not waiting for the dialog box to close before running... how can i prevent this... here is the script...
proc main
string npa,nxx,minx
dialogbox 0 148 83 242 113 2 "QMOB"
pushbutton 7 72 66 40 16 "OK" OK
pushbutton 8 124 66 37 17 "CANCEL" CANCEL
editbox 20 70 40 32 16 NPA 3
editbox 22 102 40 32 16 NXX 3
editbox 24 136 40 32 16 MINX 4
text 21 70 30 32 9 "NPA" center
text 23 102 30 32 9 "NXX" center
text 25 136 30 32 9 "NXXX" center
text 32 70 16 100 12 "PLEASE ENTER MSID HERE:" center
enddialog
transmit "quit all^M"
waitfor ">"
transmit "servord^M"
waitfor "SO:"
transmit "qmob min "
transmit npa
transmit " "
transmit nxx
transmit " "
transmit minx
transmit " extmtx^M"
endproc
proc main
string npa,nxx,minx
dialogbox 0 148 83 242 113 2 "QMOB"
pushbutton 7 72 66 40 16 "OK" OK
pushbutton 8 124 66 37 17 "CANCEL" CANCEL
editbox 20 70 40 32 16 NPA 3
editbox 22 102 40 32 16 NXX 3
editbox 24 136 40 32 16 MINX 4
text 21 70 30 32 9 "NPA" center
text 23 102 30 32 9 "NXX" center
text 25 136 30 32 9 "NXXX" center
text 32 70 16 100 12 "PLEASE ENTER MSID HERE:" center
enddialog
transmit "quit all^M"
waitfor ">"
transmit "servord^M"
waitfor "SO:"
transmit "qmob min "
transmit npa
transmit " "
transmit nxx
transmit " "
transmit minx
transmit " extmtx^M"
endproc