Adding a timer the dialog pop and hide by itself:
#include "fivewin.ch"
FUNCTION Main
LOCAL oWnd
DEFINE WINDOW oWnd TITLE "Test"
SET MESSAGE OF oWnd TO "Suporte:
a.dutheil@pobox.com" CLOCK DATE KEYBOARD NOINSET 2007
ACTIVATE WINDOW oWnd ON INIT ( oWnd:oMsgBar:ClockOn(), oWnd:oMsgBar:DateOn(), Test( oWnd ) ) ;
VALID if( MsgYesNo( "Confirma saída", "Atenção" ), .t., .f. )
RETURN ( NIL )
FUNCTION Test( oWnd )
LOCAL oActX := NIL
LOCAL oDlg := NIL
//DEFINE DIALOG oDlg FROM 10, 230 TO 80, 280 // to hide the dialog
DEFINE DIALOG oDlg FROM 10, 30 TO 40, 80
@ 1,1 ACTIVEX oActX OF oDlg PROGID "Shell.Explorer"
ACTIVATE DIALOG oDlg ON INIT ( Timer( oDlg, oWnd ), oActX:Do( "Navigate2", "http://www.logicielspro.com/logmaj.php" ) ) NOWAIT
RETURN ( NIL )
FUNCTION Timer( oDlg, oWnd )
LOCAL oTime := NIL
DEFINE TIMER oTime INTERVAL 1000 ACTION if( Action( oDlg ), ( oTime:End(), oDlg:End() ), ) OF oWnd
ACTIVATE TIMER oTime
RETURN ( NIL )
FUNCTION Action( oDlg )
waitseconds( 1 )
RETURN ( .T. )