ShellExecute()

ShellExecute()

Postby Wanderson » Wed Nov 05, 2008 2:34 pm

Hi, is possible use ShellExecute() with no show window?

I want to execute a script:

SHELLEXECUTE( 0, 0, "'http://www.transp.com.br/act", 0, 0, 1 )

but i want not display a browse window.

Thanks.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: ShellExecute()

Postby Enrico Maria Giordano » Wed Nov 05, 2008 2:58 pm

Try passing 0 as the last parameter.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: ShellExecute()

Postby Wanderson » Wed Nov 05, 2008 3:39 pm

Enrico Maria Giordano wrote:Try passing 0 as the last parameter.

EMG


Thanks, but don't work.

Wanderson.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: ShellExecute()

Postby Enrico Maria Giordano » Wed Nov 05, 2008 4:36 pm

Then try this:

Code: Select all  Expand view
oExplorer = CREATEOBJECT( "InternetExplorer.Application" )

oExplorer:Navigate2( "http://www.transp.com.br/act" )

WHILE oExplorer:ReadyState <> 4
    SYSREFRESH()
ENDDO

oExplorer:Quit()


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: ShellExecute()

Postby Wanderson » Wed Nov 05, 2008 8:02 pm

Enrico Maria Giordano wrote:Then try this:

Code: Select all  Expand view
oExplorer = CREATEOBJECT( "InternetExplorer.Application" )

oExplorer:Navigate2( "http://www.transp.com.br/act" )

WHILE oExplorer:ReadyState <> 4
    SYSREFRESH()
ENDDO

oExplorer:Quit()


EMG


Perfect! Thank you.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Postby hag » Wed Nov 05, 2008 9:03 pm

or this:

ShellExecute( 0, 'Open', 'http://www.google.com/' )
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests