Change l'attribut "Always On Top" d'une fen�tre.
WinSetOnTop ( "title", "text", flag )
title | Le titre/hWnd/class de la fen�tre � traiter. Consultez D�finition sp�ciale de titre. |
text | Le texte de la fen�tre � traiter. Consultez D�finition sp�ciale de texte. |
flag | D�termine si la fen�tre doit avoir le param�tre "Mise en avant-plan (TOPMOST)" activ�. $WINDOWS_NOONTOP (0) = D�sactive le flag avant-plan $WINDOWS_ONTOP (1) = Active le flag avant-plan Les constantes sont d�finies dans "AutoItConstants.au3" |
Succ�s: | Retourne 1. |
�chec: | Retourne 0 si la fen�tre n'est pas trouv�e. |
#include <AutoItConstants.au3> Example() Func Example() ; R�cup�re le handle de la fen�tre active. Local $hWnd = WinGetHandle("[ACTIVE]") ; D�finit la fen�tre active comme �tant 'on top' � l'aide du handle retourn� par WinGetHandle. WinSetOnTop($hWnd, "", 1) ; Attend 2 secondes pour afficher le changement. Sleep(2000) ; Supprime l'�tat "topmost" de la fen�tre active. WinSetOnTop($hWnd, "", $WINDOWS_NOONTOP) EndFunc ;==>Example