TeraTerm 'disconnect' command unlinks MACRO (From Forum Message [#86029])
Eröffnet am: 2020-10-19 20:55
Letztes Update: 2020-11-21 00:16
Auswertung: | basilisvirus | Verantwortlicher: | (Keine) |
---|---|---|---|
Priorität: | 5 - Mittel | Meilenstein: | Tera Term 4.106 |
Typ: | Supportanfragen | Schweregrad: | 5 - Mittel |
Komponente: | Tera Term Macro | Status: | Offen |
Lösung | Works For Me |
Einzelheiten
From Forum Help [#86029]
[forum: 86029]
I use a MACRO to connect to usb com ports. I have two issues with this:
A) If the com port i specify to connect with connect '/C=...' UPPON MACRO STARTUP does not exist, the .ttl script will terminate and close... (why? i dont want that). Alternatively, is there a way to list all available usb com port devices and THEN try to connect to each of those?
B) After connecting to a COM port, using the command 'disconnect 0' or 'disconnect 1', the MACRO closes/terminates. (How can i terminate the connection to the host (COM port) only, without terminating Teraterm?)
//=====================================================================
;Code that disconnects my macro when trying to connect to a port that does not exist, UPPON MACRO STARTUP:
;both com-ports 3 and 6 are available for connection. The others are not.
timeout = 4
connect '/C=1' ;this disconnects my MACRO. I dont want it to disconnect my macro.
wait 'never'
dispstr 'END'
//==============================================================
;Code that closes my link to MACRO when using the 'disconnect command:
;both comport 3 and 6 are available for connection. The others are not.
timeout = 4
connect '/C=3' ;this connects as normal.
wait 'never'
disconnect 0 ;this closes my TeraTerm (I dont want it to close my teraTerm
wait 'never'
dispstr 'TT is still active'
wait 'never'
dispstr 'END'
Letzte Aktualisierung für dieses Ticket
2020-11-21 00:16 Aktualisiert von: nmaya
- Lösung Update from Keine to Works For Me
- Priorität Update from 9 - Höchste to 5 - Mittel
- Schweregrad Update from 9 - Höchste to 5 - Mittel