>>313

#include "user32.as"

button "test", *test : hBotton=objinfo_hwnd(stat)
button "" , *Enable

stop
*test
stop
*Enable
EnableWindow hBotton, flag
flag=flag=0
stop

こんな感じか?