I developed an app to kill the task of my main project before start the compilation process, but the focus of the APP don't back for the compilation.
PS.: I Don't have the WindowText of this other APP so I can't use this code bellow
- Code: Select all Expand view
CFILENAME := "test.exe"
IF ISEXERUNNING( CFILENAME( HB_ARGV( 0 ) ) )
msginfo("Test is running","Attenzione")
SHOWWINDOW( FINDWINDOW( 0, "TEST" ), 9 )
SETFOREGROUNDWINDOW( FINDWINDOW( 0, "TEST" ) )
RETURN NIL
ENDIF
DEFINE WINDOW m->oWnd TITLE "TEST"