winobj "msctls_trackbar32", "", , $50000000 | $2, 30, 200
hTrackbar = objinfo(stat, 2)
sendmsg hTrackbar, $405, 1, 50
sendmsg hTrackbar, $414, 10
sendmsg hTrackbar, $407, 1, 0
sendmsg hTrackbar, $408, 1, 100
oncmd gosub *vscroll, $115
dialog "mpg;*.avi;*.wmv;*.asf;*.3gp;*.mp4;*.flv",16,"動画ファイル"
if stat = 0 : end
fname = refstr
mci "open \""+fname+"\" alias f"
if stat = -1 : dialog "Open Error" : end
mci "play f"
stop
*vscroll
if lparam = hTrackbar {
sendmsg hTrackbar, $400
mci "setaudio f volume to "+(100-stat)
}
return
なんとなく作ってみたんですが失敗しました。