//多重起動防止ここから id = getid(get_thisuwsc_win) st = status(id,st_title);sc = status(id,st_class) acw(id,0,0)//不要。強制終了したいときのため。 id = getid(st,sc) ifb id > 0 then ctrlwin(id,close);slctbox(slct_btn,5,st,"exit");exit endif //多重起動防止ここまで
//使用例ここから id = getid(get_active_win)//試しにアクティブウィンドウを監視 selectウィンドウ変化監視(id, 30)//監視時間は30秒指定 case true;msgbox("変化あり") case false;msgbox("時間内に変化なし") case -1;msgbox("error") selend //使用例はここまで
function ウィンドウ変化監視(id,監視時間) ifb id < 0 or !chknum(監視時間) or 監視時間 < 1 result = -1;exit endif