Moisés,
La función GetTasks() se modificó en Julio del 2011.
Este es el código que usaba antes:
#include "FiveWin.ch"
#define GHW_HWNDFIRST 0
#define GHW_HWNDNEXT 2
#define GWW_HINSTANCE -6
//----------------------------------------------------------------------------//
function GetTasks()
local hWnd := GetWindow( GetActiveWindow(), GHW_HWNDFIRST )
local aTasks := {}
local cTask
while hWnd != 0
#ifdef __CLIPPER__
cTask = GetModuleFileName( GetWindowWord( hWnd, GWW_HINSTANCE ) )
#else
// cTask = GetModuleFileName( GetWindowLong( hWnd, GWW_HINSTANCE ) )
cTask = GetWindowText( hWnd ) // The above does now work :-(
#endif
if AScan( aTasks, cTask ) == 0
AAdd( aTasks, cTask )
endif
hWnd = GetWindow( hWnd, GHW_HWNDNEXT )
end
return aTasks
Prueba a añadir esta función en tu PRG principal y comprueba si sale como tu quieres, gracias