FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour CERRAR VENTANA CON UN RECURSO DE WINDOWS
Posts: 102
Joined: Fri May 09, 2008 08:19 PM
CERRAR VENTANA CON UN RECURSO DE WINDOWS
Posted: Tue May 14, 2013 10:35 PM

Hola, hago lo siguiente desde mi aplicaci贸n, abrir el teclado de windows con la funci贸n SHELLEXECUTE(vencom01,"OPEN","osk.exe"). El asunto es como puedo
cerrar esta ventana autom谩ticamente, cuando ya no necesite el teclado.

Gracias,
Juan Fco.
Rep. Dom.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: CERRAR VENTANA CON UN RECURSO DE WINDOWS
Posted: Wed May 15, 2013 12:57 PM
// Intenta asi:

Code (fw): Select all Collapse
FUNCTION CloseAPPExe( oWnd )

   SendMessage( FindWindow( 0, "osk" ), WM_CLOSE )

RETURN NIL


Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 102
Joined: Fri May 09, 2008 08:19 PM
Re: CERRAR VENTANA CON UN RECURSO DE WINDOWS
Posted: Wed May 15, 2013 11:29 PM

Hola hermano no pude resolver con eso se mantiene abierta la ventana del teclado, a ver si tienes otra soluci贸n que me puedas ofrecer.

Gracias,
Juan FCo.

Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: CERRAR VENTANA CON UN RECURSO DE WINDOWS
Posted: Thu May 16, 2013 06:36 AM
Debes sustituir el "osk" por el caption de la ventana que quieres cerrar.
Code (fw): Select all Collapse
聽 聽SendMessage( FindWindow( 0, "Teclado en pantalla" ), WM_CLOSE )
Saludos desde Mallorca
Biel Maim贸
http://bielsys.blogspot.com/
Posts: 102
Joined: Fri May 09, 2008 08:19 PM
Re: CERRAR VENTANA CON UN RECURSO DE WINDOWS SOLUCIONADO
Posted: Thu May 16, 2013 01:31 PM

Okey ah铆 si me funciono, gracias mil a todos por su atenci贸n.

Saludos,
Juan Fco.
Rep. Dom.

Continue the discussion