Jump to content
Fivewin Brasil

Acessar um site com o Chrome


evertonlb

Recommended Posts

Fácil: use o CHROME como Navegador DEFAULT. 

//-> Programa Para acionar os Correios - by kapiabafwh@gmail.com
	#Include "FiveWin.Ch"
	Static oWnd
	Function Main()
	    LOCAL cSiteCorreios
	    cSiteCorreios := ( "http://www.buscacep.correios.com.br/sistemas/buscacep/BuscaCepEndereco.cfm" )
	    //-> Invisibilizo a Janela
    DEFINE WINDOW oWnd FROM -10, -10 TO -5, -5
	    ACTIVATE WINDOW oWnd     ;
       ON INIT( ShellExecute(GetActiveWindow(),"open",'"'+cSiteCorreios+'"'), oWnd:End()  )
	// Google
//   ShellExecute(GetActiveWindow(),"open",'"'+cSite+'"')
// Internet Explorer
//             ON INIT( ( MeuWinExec( "Start Iexplore.Exe http://www.buscacep.correios.com.br/sistemas/buscacep/resultadoBuscaCepEndereco.cfm?t", 0 ) ), oWnd:End() )
//             ON INIT( ( MeuWinExec( "Start Iexplore.Exe http://www.correios.com.br/", 0 ) ), oWnd:End() )
	Return Nil
	/*
// IsWin2000()
// IsWinXP()
// IsNTPreWin2K()
// IsNTWorkstation()
// IsNTServer()
// IsWin2000Prof()
// IsWin2000Server()
*/
FUNCTION MeuWinExec( cParametro )
	    //LOCAL cExec := GetPvProfString("Editor","Pgm","notepad", cIniFile )
    LOCAL cExecute := GetPvProfString( "" )
	    // NT, 2000 e XP
    IF  IsWinNT() .OR. IsWin2000()
        cExecute := GetEnv( "COMSPEC" ) + " /C "
    ENDIF
	RETURN WinExec( cExecute + cParametro, 0 )
	//-> Fim do programa


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...