- Code: Select all Expand view
// \samples\CMSOFT2.PRG
#Include "FiveWin.Ch"
STATIC oWnd
FUNCTION Main()
LOCAL cUrl, cParam, cUrlFin, oDlg, oBtn, oFnt, oFont
cUrl := ( "https://app.pedidosbcn.com/tienda/tiendadepizzas" )
cParam := ( "#hl=br&gs_nf=1&cp=5&gs_id=m&xhr=t&q=fivewin&pf=p&biw=1024&bih=502&sclient=psy-ab&oq=fivew&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=531bac45c1a76a40" )
cUrlFin := ( cUrl + cParam )
DEFINE WINDOW oWnd FROM 0, 0 TO 600, 800 PIXEL
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT( ( MeuWinExec( "Start Iexplore.Exe " + cUrlFin, 0 ) ), oWnd:End() )
RETURN NIL
FUNCTION MeuWinExec( cParametro )
LOCAL cExecute := GetPvProfString( "" )
// NT, 2000 e XP
IF IsWinNT() .OR. IsWin2000()
cExecute := GetEnv( "COMSPEC" ) + " /C "
ENDIF
RETURN WinExec( cExecute + cParametro, 0 )
//-> FIN
Regarads, saludos.