-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>sendbinary</title> | ||
<meta http-equiv="Content-Style-Type" content="text/css"> | ||
<link rel="stylesheet" href="../../style.css" type="text/css"> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<h1>sendbinary</h1> | ||
|
||
<p> | ||
Sends binary data. <em>(version 5.3 or lator)</em> | ||
</p> | ||
|
||
<pre class="macro-syntax"> | ||
sendbinary <data1> <data2>.... | ||
</pre> | ||
|
||
<h2>Remarks</h2> | ||
|
||
<p> | ||
Causes Tera Term to send characters to the host.<br> | ||
If <data> is a string, the string is sent to the host. <br> | ||
If <data> is an integer, its lowest-order byte (0-255) is regarded as an ASCII code of the character, and the character is sent to the host. | ||
</p> | ||
|
||
<p> | ||
Data sent by ttpmacro.exe is received by ttermpro.exe and sent as is. Character encoding of the string type is UTF-8, strings are sent in UTF-8. Use g<a href="sendtext.html">sendtext</a>h to convert character code. | ||
</p> | ||
|
||
<h2>See also</h2> | ||
<ul> | ||
<li><a href="send.html">send</a></li> | ||
<li><a href="sendln.html">sendln</a></li> | ||
<li><a href="sendtext.html">sendtext</a></li> | ||
<li><a href="../syntax/formats.html">Formats of constants</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>sendtext</title> | ||
<meta http-equiv="Content-Style-Type" content="text/css"> | ||
<link rel="stylesheet" href="../../style.css" type="text/css"> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<h1>sendtext</h1> | ||
|
||
<p> | ||
Sends text data. <em>(Version 5.3 or lator)</em> | ||
</p> | ||
|
||
<pre class="macro-syntax"> | ||
sendtext <data1> <data2>.... | ||
</pre> | ||
|
||
<h2>Remarks</h2> | ||
|
||
<p> | ||
Causes Tera Term to send characters to the host.<br> | ||
If <data> is a string, the string is sent to the host. <br> | ||
If <data> is an integer, its lowest-order byte (0-255) is regarded as an ASCII code of the character, and the character is sent to the host. | ||
</p> | ||
|
||
<p> | ||
String sent by ttpmacro.exe is received by ttermpro.exe, converted to character code and sent. Use "<a href="sendbinary.html">sendbinary</a>" to send without conversion. | ||
</p> | ||
|
||
<h2>See also</h2> | ||
<ul> | ||
<li><a href="sendbinary.html">sendbinary</a></li> | ||
<li><a href="send.html">send</a></li> | ||
<li><a href="../syntax/formats.html">Formats of constants</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>sendbinary</title> | ||
<meta http-equiv="Content-Style-Type" content="text/css"> | ||
<link rel="stylesheet" href="../../style.css" type="text/css"> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<h1>sendbinary</h1> | ||
|
||
<p> | ||
バイナリを送信する。 <em>(バージョン 5.3以降)</em> | ||
</p> | ||
|
||
<pre class="macro-syntax"> | ||
sendbinary <data1> <data2>.... | ||
</pre> | ||
|
||
<h2>解説</h2> | ||
|
||
<p> | ||
<data> が文字列型の場合、文字列をホストへ送信させる。<br> | ||
<data> が整数型の場合は、その値の下位バイト(0-255)を ASCII コードとみなし、その文字を送信する。 | ||
</p> | ||
|
||
<p> | ||
ttpmacro.exe が送信したデータは、ttermpro.exe が受信して、そのまま送信する。文字列型の文字コードはUTF-8なので、文字列はUTF-8で送信される。文字コードを変換する場合は "<a href="sendtext.html">sendtext</a>" を使用する。 | ||
</p> | ||
|
||
<h2>参照</h2> | ||
<ul> | ||
<li><a href="send.html">send</a></li> | ||
<li><a href="sendln.html">sendln</a></li> | ||
<li><a href="sendtext.html">sendtext</a></li> | ||
<li><a href="../syntax/formats.html">定数の形式</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>sendtext</title> | ||
<meta http-equiv="Content-Style-Type" content="text/css"> | ||
<link rel="stylesheet" href="../../style.css" type="text/css"> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<h1>sendtext</h1> | ||
|
||
<p> | ||
テキストを送信する。 <em>(バージョン 5.3以降)</em> | ||
</p> | ||
|
||
<pre class="macro-syntax"> | ||
sendtext <data1> <data2>.... | ||
</pre> | ||
|
||
<h2>解説</h2> | ||
|
||
<p> | ||
<data> が文字列型の場合、文字列をホストへ送信させる。<br> | ||
<data> が整数型の場合は、その値の下位バイト(0-255)を ASCII コードとみなし、その文字を送信する。 | ||
</p> | ||
|
||
<p> | ||
ttpmacro.exeが送信した文字列は、ttermpro.exe が受信して、設定された文字コードに変換して送信する。変換せずに送信する場合は "<a href="sendbinary.html">sendbinary</a>" を使用する。 | ||
</p> | ||
|
||
<h2>参照</h2> | ||
<ul> | ||
<li><a href="sendbinary.html">sendbinary</a></li> | ||
<li><a href="send.html">send</a></li> | ||
<li><a href="../syntax/formats.html">定数の形式</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
# Macro Protocol | ||
|
||
## XTYP_EXECUTE | ||
|
||
- command | ||
- command definitions are in[teraterm/common/ttddecmnd.h](https://github.com/TeraTermProject/teraterm/blob/c7ce43608e0e2844e148b88cfadb9a96cebaba01/teraterm/common/ttddecmnd.h#L31) | ||
- ttpmacro -> ttermpro | ||
- packet length limit is MaxStrLen | ||
|
||
| pos | len | Description | | ||
|-----|-----|-------------| | ||
| 0 | 1 | command | | ||
| | N | data | | ||
|
||
- command (CmdSendUTF8String/CmdSendBinary/CmdSendCompatString) | ||
|
||
| pos | len | Description | | ||
|-----|-----|------------------------| | ||
| 0 | 1 | command | | ||
| 1 | 4 | length(little endian) | | ||
| 5 | N | data(string or binary) | | ||
|
||
|
||
## XTYP_POKE | ||
|
||
- data(text and binary) | ||
- ttpmacro -> ttermpro | ||
|
||
## XTYP_REQUEST | ||
|
||
- ttpmacro <- ttermpro | ||
- Item "DATA" | ||
- text or binary | ||
- Item "PARAM" | ||
- ファイル名的な? | ||
- 通信の応答 | ||
|
||
|
||
## DDE(DDEML) WIN32 APIs | ||
|
||
- DdeAccessData() | ||
- ハンドル(HDDEDATA)から先頭のポインタとサイズを取得できる | ||
- DdeUnaccessData() | ||
- DdeAccessData() した物を解除する | ||
- DdeGetData() | ||
- ハンドル(HDDEDATA)のデータをワークにコピーする | ||
- 戻り値が実際のサイズ | ||
|