Search found 37 matches: setforegroundwindow

Return to advanced search

Re: Window in the foreground

This way you put a window foreground

SetForeGroundWindow( oWnd:hWnd )

Next, do you want to close it ?
by Antonio Linares
Thu Sep 15, 2022 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Window in the foreground
Replies: 7
Views: 384

Re: Se puede ocultar una ventana Java?

... := "C:\TEMP\ZERUS\" LOCAL APP_TITLE := "RUSSOFT - Lector de Huellas" LOCAL hWnd := FindWindow( 0, APP_TITLE ) IF hWnd > 0 SetForeGroundWindow( hWnd ) ELSE ShellExecute( , "open", "LECTOR.BAT " ,; ["] + M->cCajIni + [" ] + ; ["] + ALLTRIM(m->cNomUsr) ...
by russimicro
Sun Dec 17, 2017 12:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se puede ocultar una ventana Java?
Replies: 4
Views: 649

A problem < keep on top >

... hWnd := FindWnd( "Keeping at top" ) // Title !!! IF hWnd != NIL IF ISICONIC( hWnd ) SHOWWINDOW( hWnd, SW_RESTORE ) ENDIF IF nType = 1 SETFOREGROUNDWINDOW( hWnd ) ENDIF IF nType = 2 SENDMESSAGE( hWnd, WM_CLOSE ) ENDIF //ELSE // MsgAlert( "COLORPICKER is not running !", "Attention" ...
by ukoenig
Sat Nov 11, 2017 4:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem < keep on top >
Replies: 1
Views: 575

Re: Lista Processi/Programmi in esecuzione

... ) ) MsgWait(NOME_PROGRAMMA_TITLE+" è già in esecuzione !","Attenzione") SHOWWINDOW( FINDWINDOW( 0, NOME_PROGRAMMA_TITLE ), 9 ) SETFOREGROUNDWINDOW( FINDWINDOW( 0, NOME_PROGRAMMA_TITLE ) ) RETURN NIL ENDIF La finestra prima si chiama ""STUDIO" e lui mi dice che ...
by Silvio.Falconi
Fri Feb 17, 2017 12:42 pm
 
Forum: All products support
Topic: Lista Processi/Programmi in esecuzione
Replies: 10
Views: 3333

Re: Ejecutar archivo Jar desde FiveWin

... := "C:\TEMP\ZERUS\" LOCAL APP_TITLE := "RUSSOFT - Lector de Huellas" LOCAL hWnd := FindWindow( 0, APP_TITLE ) IF hWnd > 0 SetForeGroundWindow( hWnd ) // SI YA ESTA EN EJECUCION ..SOLO LO TRAE AL FRENTE ELSE ShellExecute( , "open", "LECTOR.BAT " ,; ["] ...
by russimicro
Wed Oct 26, 2016 4:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejecutar archivo Jar desde FiveWin
Replies: 4
Views: 892

Re: SetFocus question.

Gustavo,

Try to use SetForeGroundWindow( hWnd ) instead of SetFocus( hWnd )
by Antonio Linares
Wed Sep 14, 2016 8:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetFocus question.
Replies: 15
Views: 3510

Re: How to keep a appl. on top of the dialog on resize ?

... hWnd := FindWnd( "COLOR-PICKER 1.1" ) // Title !!! IF hWnd != NIL IF ISICONIC( hWnd ) SHOWWINDOW( hWnd, SW_RESTORE ) ENDIF IF nType = 1 SETFOREGROUNDWINDOW( hWnd ) ENDIF IF nType = 2 SENDMESSAGE( hWnd, WM_CLOSE ) ENDIF ELSE MsgAlert( "COLORPICKER is not running !", "Attention" ...
by ukoenig
Sat Aug 01, 2015 1:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2423

Re: How to keep a appl. on top of the dialog on resize ?

... CFILENAME := "COLORPICK.exe" IF ISEXERUNNING( CFILENAME( HB_ARGV( 0 ) ) ) SHOWWINDOW( FINDWINDOW( 0, "COLORPICK" ), 9 ) SETFOREGROUNDWINDOW( FINDWINDOW( 0, "COLORPICK" ) ) ENDIF RETURN NIL both are not working The main-lines from Colorpick.prg .. .. DEFINE WINDOW ...
by ukoenig
Sat Aug 01, 2015 7:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2423

Focus to my application (resolved!)

Hello!

I need to give focus to my application when it happens a condition.

I'm using a function called by the Timer to verify this condition.

I've tried the ShowWindow () functions and SetForegroundWindow () but without obtaining the desired result.

Any suggestions?

Thank you
by ip_ram
Mon Feb 23, 2015 4:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Focus to my application (resolved!)
Replies: 6
Views: 805

Re: Como verificar que el programa esta en ejecución

... + APP_TITLE + " ya esta siendo ejecutado!" ) hWnd := FindWindow( APP_TITLE ) IF hWnd > 0 IF IsIconic( hWnd ) Restore( hWnd ) ELSE SetForeGroundWindow( hWnd ) ENDIF ELSE * MsgStop( "No es possible encontrar el programa !", "Error", , .f. ) ENDIF ELSE //EJECUTA ...
by postinelli
Mon Jan 05, 2015 4:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como verificar que el programa esta en ejecución
Replies: 14
Views: 2333

Re: isexerunning

... function Main() IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) ) SHOWWINDOW( FINDWINDOW( 0, "TUTOR01" ), 9 ) SETFOREGROUNDWINDOW( FINDWINDOW( 0, "TUTOR01" ) ) msginfo([EMG]) RETURN NIL ENDIF MsgInfo( FWVERSION + Chr( 13 ) + FWCOPYRIGHT, FWDESCRIPTION ...
by norberto
Sun May 06, 2012 4:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: isexerunning (Solved)
Replies: 18
Views: 3939

isexerunning (Solved)

HI, this code: (by EMG)

IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
SHOWWINDOW( FINDWINDOW( 0, "Titolo tua finestra" ), 9 )
SETFOREGROUNDWINDOW( FINDWINDOW( 0, "Titolo tua finestra" ) )
RETURN NIL
ENDIF

works before build window of exe?
by norberto
Fri May 04, 2012 4:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: isexerunning (Solved)
Replies: 18
Views: 3939

Re: Incrustar otra aplicación

Donde encontro las funciones:
SetWinLonA(oexcelsolver:hWnd,-16,"L") //Es la función API SetWindowLongA, en este caso quita la barra de titulo de excel
SetForeWin(oexcelsolver:hWnd) //Es la funcion API SetForegroundWindow tiene que ir antes de la llamada a setparent()
Gracias,
Oscar Ribeiro
by ORibeiro
Fri Apr 15, 2011 1:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incrustar otra aplicación
Replies: 11
Views: 5160

Re: Bring another APP to top

... what you are trying to do, but maybe this is what you need. Save the foreground window then later set it to the foregroundWindow again using setForegroundWindow(). LOCAL hWnd := GETFOREGROUNDWINDOW() DLL32 FUNCTION GETFOREGROUNDWINDOW() AS LONG; PASCAL FROM "GetForegroundWindow" ...
by James Bott
Thu Mar 17, 2011 12:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bring another APP to top
Replies: 2
Views: 731

Re: Incrustar otra aplicación

... //Es la función API SetWindowLongA, en este caso quita la barra de titulo de excel SetForeWin(oexcelsolver:hWnd) //Es la funcion API SetForegroundWindow tiene que ir antes de la llamada a setparent() SetParent(oexcelsolver:hWnd,oWnd:hWnd) //Incrusta Excel en mi ventana oWnd:SetText( ...
by Sebastián Almirón
Fri Mar 04, 2011 3:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Incrustar otra aplicación
Replies: 11
Views: 5160
Next

Return to advanced search

cron