外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
mshtaでレイヤを取得する(ly)
:mshtaでレイヤを取得する(ly)
@echo off
if exist jwc_temp.txt (
copy jwc_temp.txt myfiles > nul
mshta %~f0 < myfiles > jwc_temp.txt
)
goto:eof
REM #jww
REM #e
<script>
ly = ""
with (new ActiveXObject("Scripting.FileSystemObject")) {
f = GetStandardStream(0) //stdin
g = GetStandardStream(1) //stdout
while (! f.AtEndOfStream) {
F = ($_ = f.ReadLine()).split(/\s+/)
if (/^ly[a-f0-9]/i .test($_)) { //ly レイヤ
ply = $_.substr(2, 1).toLowerCase(); if (ly == "") ly = ply;
}
}
f.close()
g.WriteLine("h#ly=" + ly)
}
close()
</script>