#include "HookDlgBox.au3" #include Global $Timeout = 3 ;~ _DlgBox_SetButtonNames("1st", "2nd", "3rd", "4th", "5th") _DlgBox_SetButtonNames("1st") _DlgBox_SetTimeout($Timeout, 1) Global $t = MsgBox(BitOR($MB_TOPMOST, $MB_OK), "Information", "View has been refreshed!");, $Timeout) ConsoleWrite($t & @CRLF) _DlgBox_SetTimeout($Timeout, 2) Global $t = MsgBox(BitOR($MB_TOPMOST, $MB_OKCANCEL), "Information", "View has been refreshed!");, $Timeout) ConsoleWrite($t & @CRLF) _DlgBox_SetTimeout($Timeout, 3) Global $t = MsgBox(BitOR($MB_TOPMOST, $MB_YESNOCANCEL), "Information", "View has been refreshed!");, $Timeout) ConsoleWrite($t & @CRLF) _DlgBox_SetTimeout($Timeout, 3) Global $t = MsgBox(BitOR($MB_TOPMOST, $MB_CANCELTRYCONTINUE), "Information", "View has been refreshed!");, $Timeout) ConsoleWrite($t & @CRLF) ;known errors : --> $MB_HELP wrong button texts because of strange behaviour ;~ Global $iRet1 = MsgBox(BitOR($MB_TOPMOST, $MB_ICONINFORMATION), "Test 1", "Custom button texts", $Timeout) ;~ ConsoleWrite($iRet1 & @CRLF) ;~ Global $iRet2 = MsgBox(3, "Test 2", "Custom button texts", $Timeout) ;~ ConsoleWrite($iRet2 & @CRLF) ;~ _DlgBox_SetTimeout($Timeout, 1) ;~ Global $iRet3 = MsgBox(3, "Test 3", "Custom button texts") ;~ ConsoleWrite($iRet3 & @CRLF) ;~ _DlgBox_SetTimeout($Timeout, 3) ;~ Global $iRet4 = MsgBox(3, "Test 4", "Custom button texts") ;~ ConsoleWrite($iRet4 & @CRLF)