|
| Mettre une fenêtre lancée par LanceAppli par dessus-tou |
| Iniciado por TheCout, 11,ago. 2020 11:41 - 3 respuestas |
| |
| | | |
|
| |
Miembro registrado 104 mensajes |
|
| Publicado el 11,agosto 2020 - 11:41 |
Bonjour,
J'utilise LanceAppli avec Powershell pour visualiser un log:
v_int_PID est un entier = LanceAppli(ChaîneConstruit("powershell -Command ""& {Write-Host 'Affichage du log via PowerShell';Get-Content -Path '%1' -Tail 0 -Wait}""", nomFichier ),exeActif,exePID)
Quelqu'un saurait-il me dire comment faire pour mettre la fenêtre ainsi créée par Powershell au premier-plan (par dessus tout) ? |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 189 mensajes |
|
| Publicado el 11,agosto 2020 - 15:09 |
Bonjour TheCout,
C'est à la fenêtre elle-même de le faire:
FenEtat(FEN_NomFenêtre, DessusTout) |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 104 mensajes |
|
| Publicado el 11,agosto 2020 - 15:57 |
@Jean-Marc : C'est la fenêtre PowerShell que je veux mettre au premier plan, pas une fenêtre de mon appli.
Mais entre-temps j'ai trouvé pour ceux que ca intéresse. Nota, la valeur -1 signifie TopMost mais 3 je ne sais pas ce que ca veut dire. Les valeurs 0 signfie qu'on ne veut pas déplacer la fenêtre mais juste la mettre au premier plan.
v_int_Process = LanceAppli(ChaîneConstruit("powershell -Command ""& {Write-Host 'Affichage du log via PowerShell';Get-Content -Path '%1' -Tail 0 -Wait}""",gp_chn_RepLog + ["\"] + "Inotech\" + DateSys() + ".log"),exeActif,exePID) TimerSys(pi_PremierPlan, 20cs)
PROCEDURE INTERNE pi_PremierPlan() v_int_Handle est un entier = SysFenActive() v_chn_TitreFen est une chaîne = SysFenTitre(v_int_Handle) SI Contient(v_chn_TitreFen,"power",SansCasse) ALORS API("user32.dll", "SetWindowPos", v_int_Handle, -1, 0, 0, 0, 0, 3) FinTimerSys() FIN SysFenAffiche(v_int_Handle) FIN |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 189 mensajes |
|
| Publicado el 11,agosto 2020 - 17:08 |
| Hé oui, bien sûr, désolé pour ma précipitation et merci pour la solution |
| |
| |
| | | |
|
| | | | |
| | |
|