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
Is exe running ?
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42511
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
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
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42511
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact: