#WinActivateForce AppPath := "C:\MT4\MT4Popup.exe" Title := "Alert" Msg := "" Broker := "ODL" AlertType:= "Alert" IconPath := "http://www.digitalpatio.com/faiFX/img/yuki90.gif" ;;タイトルに時間を入れたくなければ次の行を削除 Title = %Title% %A_Hour%:%A_Min%:%A_Sec% ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SetTitleMatchMode, 2 if WinExist(%Broker%) WinActivate if WinExist("警告") or WinExist("Alert") { WinActivate SetTitleMatchMode, Slow SetTitleMatchMode, 2 WinGetText, text ; The window found above will be used. StringReplace, text, text, `r`n,, All StringReplace, text, text, OK,, StringReplace, text, text, List1,, mypop = "%AppPath%" "%Title%" "%Msg%%text%" "%Broker%" "%AlertType%" 0 "%IconPath%" ;MsgBox, The new text is:`n%mypop% Run,%mypop% } ;;アラートダイアログを自動で閉じたいなら以下の行の先頭の;を削除して有効化 ;Send {Enter}