Open more than 16 virtual com ports, Connect /c and callmenu TTL questions.... (From Forum Message #85594)
sample code below will open new connections but requires user to "ok" connection, and will create and open first log file and start logging, but only the first connection........
; sample macro of Tera Term ; ; File: Proflow EOS v1.ttl ; Description: Opens multiple com Port and creates logging files and starts logging ; Environment: generic ; Update: 18/08/19 ; Author: M Robinson ; Configuration callmenu 50480 ; Show Macro Window dirname dir 'c:\Proflow_EOS' callmenu 50110 mpause 500 connect '/C=10' mpause 5000 CP = 10 call makefilename logopen filename 0 0 mpause 500 logstart callmenu 50110 mpause 500 connect '/C=11' mpause 5000 CP = 11 call makefilename logopen filename 0 0 mpause 500 logstart callmenu 50110 mpause 500 connect '/C=12' mpause 500 CP = 12 call makefilename logopen filename 0 0 mpause 500 logstart connect '/C=13' mpause 500 connect '/C=14' mpause 500......... ................... '/C= 10..40' callmenu 50815 ; Side by Side end :makefilename getdate StrDate gettime StrTime ;1234567890 ;YYYY-MM-DD strcopy StrDate 1 4 DateY ;YYYY strcopy StrDate 6 2 DateM ; MM strcopy StrDate 9 2 DateD ; DD ;1234567890 ;HH:MM:SS strcopy StrTime 1 2 TimeH ;HH strcopy StrTime 4 2 TimeM ; MM strcopy StrTime 7 2 TimeS ; SS sprintf2 filename "Proflow_EOS_Com%i_%s%s%s-%s%s%s.log" CP DateY DateM DateD TimeH TimeM TimeS ;filename = inputstr return
I resolved this in the end
From Forum Help [#85594]
[forum: 85594]