#include "hspycp.as" ycp_Open "HSPDSC_CaptureSource_Data", "HSPDSC_CaptureSource_Write", "HSPDSC_CaptureSource_Read" devId = stat fps = 30 avgTimePF = 1000 / fps // fps font "メイリオ", 64, 16 mref vram, 66 repeat // 描画したい内容 pos 0, 0 : color 255, 255, 255 boxf : color mes cnt ycp_Send devId, cnt, fps, 640, 480, vram if stat < 0{ dialog "エラーが発生しました" break }else : if 0 == stat{ title "正常動作中" }else{ title "待機中..." } await avgTimePF loop ycp_Close devId