RunScript filePath |
SD카드로부터 Script파일을 읽어서 실행합니다. Script 파일이란 M Display의 명령어가 기록된 Text파일입니다. PC의 메모장 (Notepad)와 같은 Text Editor로 작성하신뒤 SD카드로 Copy하신뒤 사용하십시오.
Argument | Type | Description |
---|---|---|
filePath | Text | SD 카드의 파일경로 |
“/Scripts/Grid.txt” 에 다음과 같은 내용의 Script를 저장합니다.
# Clear the active layer Clear # Don't draw anything until all commands have executed DisableFlush # Set line width LineWidth 2.0 # White lines Color FFFFFF # Vertical lines DrawLine 10 10 10 470 DrawLine 30 10 30 470 DrawLine 50 10 50 470 DrawLine 70 10 70 470 DrawLine 90 10 90 470 DrawLine 110 10 110 470 DrawLine 130 10 130 470 DrawLine 150 10 150 470 DrawLine 170 10 170 470 DrawLine 190 10 190 470 DrawLine 210 10 210 470 DrawLine 230 10 230 470 DrawLine 250 10 250 470 DrawLine 270 10 270 470 DrawLine 290 10 290 470 DrawLine 310 10 310 470 DrawLine 330 10 330 470 DrawLine 350 10 350 470 DrawLine 370 10 370 470 DrawLine 390 10 390 470 DrawLine 410 10 410 470 DrawLine 430 10 430 470 DrawLine 450 10 450 470 DrawLine 470 10 470 470 DrawLine 490 10 490 470 DrawLine 510 10 510 470 DrawLine 530 10 530 470 DrawLine 550 10 550 470 DrawLine 570 10 570 470 DrawLine 590 10 590 470 DrawLine 610 10 610 470 DrawLine 630 10 630 470 DrawLine 650 10 650 470 DrawLine 670 10 670 470 DrawLine 690 10 690 470 DrawLine 710 10 710 470 DrawLine 730 10 730 470 DrawLine 750 10 750 470 DrawLine 770 10 770 470 DrawLine 790 10 790 470 # Horizontal lines DrawLine 10 10 790 10 DrawLine 10 30 790 30 DrawLine 10 50 790 50 DrawLine 10 70 790 70 DrawLine 10 90 790 90 DrawLine 10 110 790 110 DrawLine 10 130 790 130 DrawLine 10 150 790 150 DrawLine 10 170 790 170 DrawLine 10 190 790 190 DrawLine 10 210 790 210 DrawLine 10 230 790 230 DrawLine 10 250 790 250 DrawLine 10 270 790 270 DrawLine 10 290 790 290 DrawLine 10 310 790 310 DrawLine 10 330 790 330 DrawLine 10 350 790 350 DrawLine 10 370 790 370 DrawLine 10 390 790 390 DrawLine 10 410 790 410 DrawLine 10 430 790 430 DrawLine 10 450 790 450 DrawLine 10 470 790 470 # Display the result EnableFlush
실행 결과는 다음과 같습니다.
RunScript "/Scripts/Grid.txt"