#module
#deffunc gifload str file, int x, int y, int w, int h, local i, local s, local s2
rect = x, y, w, h // X座標, Y座標, 横幅, 高さ
mci "open " + file + " type MPEGVideo2 alias picture"
mci "window picture handle " + hwnd
mci "where picture source"
s = refstr
i = 0 // 位置
repeat 4
getstr s2, s, i, ' '
i += strsize
if rect.cnt = 0 : rect.cnt = 0 + s
loop
mci "put picture destination at " + rect.0 + " " + rect.1 + " " + rect.2 + " "+rect.3
mci "play picture"
return
#global
dialog "gif", 16
gifload refstr, 100, 50, 200, 100 // 座標(100, 50)にサイズ「200, 100」で表示
stop
|