Jump to content
Fivewin Brasil

Chromo ao invés do Internet explorer


crisvam

Recommended Posts

#include "FiveWin.ch"
	static oWnd
	FUNCTION Main()
	   LOCAL oBar
	   DEFINE WINDOW oWnd TITLE "Google Action"
	   DEFINE BUTTONBAR oBar _3D OF oWnd
	   DEFINE BUTTON OF oBar ACTION GOOGLE()
	   SET MESSAGE OF oWnd TO "Google Action" NOINSET CLOCK DATE KEYBOARD
	   ACTIVATE WINDOW oWnd
	RETURN NIL
	Function GOOGLE()
	   Local cPath
	   // Windows 7 de 32 bits - work fine.
   cPath := "C:\Program Files\Google\Chrome\Application\chrome.exe"
	   If !IsInternet()
	      Msgalert("Não conectado a internet.", "Aviso!")
	      Return nil
	   Endif
	   ShellExecute( GetActiveWindow(), "open", cPath,,,9 )
     
Return nil


 

Link to comment
Share on other sites

#include "FiveWin.ch"
	static oWnd
	FUNCTION Main()
	   LOCAL oBar
	   DEFINE WINDOW oWnd TITLE "Google Action"
	   DEFINE BUTTONBAR oBar _3D OF oWnd
	   DEFINE BUTTON OF oBar ACTION GOOGLE()
	   SET MESSAGE OF oWnd TO "Google Action" NOINSET CLOCK DATE KEYBOARD
	   ACTIVATE WINDOW oWnd
	RETURN NIL
	Function GOOGLE()
	   Local cPortal
	   cPortal := "http://internet.sefaz.es.gov.br/"  // Url do Esp. Santo
	   If !IsInternet()
	      Msgalert("Não conectado a internet.", "Aviso!")
	      Return nil
	   Endif
	   MsgWait( "CONECTANDO AO PORTAL DA SEFAZ...", ;
            "AGUARDE UM MOMENTO POR FAVOR... ", 2.5 )
	   // Executa o navegador padrao... Google Chrome nao gosto do IE.
   ShellExecute( GetActiveWindow(), "open", cPortal,,,9 )
     
Return nil


 

Link to comment
Share on other sites

 

 


#include "FiveWin.ch"
	static oWnd
	FUNCTION Main()
	   LOCAL oBar
	   DEFINE WINDOW oWnd TITLE "Google Action"
	   DEFINE BUTTONBAR oBar _3D OF oWnd
	   DEFINE BUTTON OF oBar ACTION GOOGLE()
	   SET MESSAGE OF oWnd TO "Google Action" NOINSET CLOCK DATE KEYBOARD
	   ACTIVATE WINDOW oWnd
	RETURN NIL
	Function GOOGLE()
	   Local cPortal
	   cPortal := "http://internet.sefaz.es.gov.br/"  // Url do Esp. Santo
	   If !IsInternet()
	      Msgalert("Não conectado a internet.", "Aviso!")
	      Return nil
	   Endif
	   MsgWait( "CONECTANDO AO PORTAL DA SEFAZ...", ;
            "AGUARDE UM MOMENTO POR FAVOR... ", 2.5 )
	   // Executa o navegador padrao... Google Chrome nao gosto do IE.
   ShellExecute( GetActiveWindow(), "open", cPortal,,,9 )
     
Return nil


 

 

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...