Page 1 of 1

How restore running aplication ?

Posted: Fri Dec 28, 2007 3:13 pm
by marekrz
i can check running aplication with function IsExeRunning().
In this case, how restoring window with this application ?
With function SetForeGroundWindow( ) ?

greetings/salu2
Marek

Re: How restore running aplication ?

Posted: Fri Dec 28, 2007 6:10 pm
by Enrico Maria Giordano

Code: Select all

IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
    SHOWWINDOW( FINDWINDOW( 0, cWindowTitle ), 9 )
    SETFOREGROUNDWINDOW( FINDWINDOW( 0, cWindowTitle ) )
    RETURN NIL
ENDIF
EMG

Re: How restore running aplication ?

Posted: Fri Jan 04, 2008 7:11 am
by marekrz
:D :D :D

thanks !