How restore running aplication ?

Post Reply
User avatar
marekrz
Posts: 5
Joined: Sat Dec 22, 2007 10:18 pm
Location: Poland

How restore running aplication ?

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: How restore running aplication ?

Post 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
User avatar
marekrz
Posts: 5
Joined: Sat Dec 22, 2007 10:18 pm
Location: Poland

Re: How restore running aplication ?

Post by marekrz »

:D :D :D

thanks !
Post Reply