FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Is exe running ?
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Is exe running ?
Posted: Tue Aug 29, 2006 08:15 PM

Antonio

Can we have a conversion of this ?

IF IS_EXERUNNING( CFILENAME( HB_ARGV( 0 ) ) )
? "The app is already running"
RETURN NIL
ENDIF

The "Findwindow" is not enough. It still allows a use rto click twice or more.

Tia

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Is exe running ?
Posted: Wed Aug 30, 2006 07:07 PM

Richard,

There is a new FWPPC build already available that implements IsExeRunning(). There is a working sample at samples\CheckApp.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Is exe running ?
Posted: Wed Aug 30, 2006 08:12 PM
Antonio Linares wrote:Richard,

There is a new FWPPC build already available that implements _(). There is a working sample at samples\CheckApp.prg


Antonio

Thanks it works OK now.

I will suggest you change the sample. It is tricky, the exe and main window have the same name "checkapp" , it can be confusing.

CFILENAME := "myapp.exe"
IF ISEXERUNNING( CFILENAME( HB_ARGV( 0 ) ) )
msginfo("app is already loaded")
RETURN NIL
ENDIF

This will work independent from the window's name.

Thanks for your efforts, FWPPC is a great tool. i am about to publish my first app.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Is exe running ?
Posted: Wed Aug 30, 2006 09:47 PM
Antonio Linares wrote:Richard,

There is a new FWPPC build already available that implements _(). There is a working sample at samples\CheckApp.prg


What is _()?

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Is exe running ?
Posted: Wed Aug 30, 2006 09:58 PM

Enrico,

It is I S E X E R U N N I N G ( )

Its quite strange but when it is written together it looks as "_"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion