[EDIT] au cours du script et non à la creation.
J'avais pensé à ca entre autre.
Code : Tout sélectionner
GUISetStyle (-1,$WS_EX_TOPMOST)
Bien le Bonjour.
Code : Tout sélectionner
GUISetStyle (-1,$WS_EX_TOPMOST)
Code : Tout sélectionner
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 615, 440, 192, 124, -1,$WS_EX_TOPMOST)
GUISetState()
Sleep(10000)
Code : Tout sélectionner
Func _WinAPI_SetWindowPos($hWnd, $hAfter, $iX, $iY, $iCX, $iCY, $iFlags)
; Z order
; $HWND_BOTTOM = 1 ; Places the window at the bottom of the Z order
; $HWND_NOTOPMOST = -2 ; Places the window above all non-topmost windows
; $HWND_TOP = 0 ; Places the window at the top of the Z order
; $HWND_TOPMOST = -1 ; Places the window above all non-topmost windows
Local $aResult = DllCall("user32.dll", "bool", "SetWindowPos", "hwnd", $hWnd, _
"hwnd", $hAfter, "int", $iX, "int", $iY, "int", $iCX, "int", $iCY, "uint", $iFlags)
If @error Then Return SetError(@error, @extended, False)
Return $aResult[0]
EndFunc ;==>_WinAPI_SetWindowPos
Code : Tout sélectionner
_WinAPI_SetWindowPos($mainGui, -1, -1, -1, -1, -1, BitOR(0x0001, 0x0002)) ; $SWP_NOSIZE, $SWP_NOMOVE
DimVar a écrit :Les fonctions win agissent certes sur les fenêtres, mais il me semble que cette fonction mets temporairement une fenêtre au 1er plan. (a tester)