I'm trying to send a close message to the Procomm Window from the Aspect code. Is this possible to do?
I've tried winclose $PWMAINWIN but that did work.
co = "^[[;1;4m^O"
strcat co extension
strcat co " ^[[19;47H"
dlgdestroy 0 OK
set modem connection "direct connect-Com1"
commandmode on ; turn on modem command mode
transmit "atd" ; transmit at commands to
transmit "9416" ; area code and
transmit "3047436" ; phone number
transmit "^M"
waitfor "CONNECT" 60 ; wait 60 secs for connect msg
else
dialogbox 1 105 59 158 67 27 "Voice Mail Password Reset"
text 4 61 12 38 11 "&Not connected" left
pushbutton 5 57 25 45 16 "&OK" DEFAULT
enddialog
while 1
dlgevent 1 Event
switch Event
case 5
pwexit
endcase
endswitch
endwhile
endif
dialogbox 1 105 59 158 67 27 "Voice Mail Password Reset"
text 4 61 12 38 11 "&The password was reset to the extension followed by 00" left
pushbutton 5 57 25 45 16 "&OK" DEFAULT
enddialog
while 1
dlgevent 1 Event
switch Event
case 5
pwexit
endcase
endswitch
endwhile
endproc
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.