I've tried to research this, but I can't find exactly what I want to do.
I have 3 Procomm sessions open all the time, they communicate with 3 different phone switches via direct connect com1, com2 & com3.
How can I( is it possible? ) have a script running in one session enact commands into the other sessions?
For instance if I start the following script and have it run on each com port.
Proc Main
integer iDay, iMonth, iYear, iMin, iHour, iSec
string sSend
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sSend "STAD %02d %02d %d %02d %02d %02d" iDay iMonth iYear iHour iMin iSec
set txpace 15
transmit "****^M"
waitfor ">"
transmit "ld 2^M"
waitfor "."
transmit "TTAD^M"
waitfor "."
transmit sSend
transmit "^M"
waitfor "."
pause 2
transmit "TTAD^M"
waitfor "."
pause 2
transmit "****^M"
; I can't use a [ set modem connection "direct connect-Com2" ] here because com2 is already running.
EndProc
Ideally I'd like to be able to run a script in say com1 and have it be able to go to com2 or com3 execute whatever commands and then come back to the original com1.
Is DDE the only way? If it is I can't figure out how to know what the specific session names are.
I have 3 Procomm sessions open all the time, they communicate with 3 different phone switches via direct connect com1, com2 & com3.
How can I( is it possible? ) have a script running in one session enact commands into the other sessions?
For instance if I start the following script and have it run on each com port.
Proc Main
integer iDay, iMonth, iYear, iMin, iHour, iSec
string sSend
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sSend "STAD %02d %02d %d %02d %02d %02d" iDay iMonth iYear iHour iMin iSec
set txpace 15
transmit "****^M"
waitfor ">"
transmit "ld 2^M"
waitfor "."
transmit "TTAD^M"
waitfor "."
transmit sSend
transmit "^M"
waitfor "."
pause 2
transmit "TTAD^M"
waitfor "."
pause 2
transmit "****^M"
; I can't use a [ set modem connection "direct connect-Com2" ] here because com2 is already running.
EndProc
Ideally I'd like to be able to run a script in say com1 and have it be able to go to com2 or com3 execute whatever commands and then come back to the original com1.
Is DDE the only way? If it is I can't figure out how to know what the specific session names are.