>>963
ありがとうございます。
まだ動かないのですが、今はこんな感じで調整してみました。

MButton::
loop{
click
sleep 250
keywait , MButton , D
break
}
return