J'aimerais créer une gui fonctionnelle par dessus un jeu, en locurence Counter strike: source. J'aimerais faire apparaître une gui en plein jeu.
Merci d'avance

Code : Tout sélectionner
#include <Constants.au3>
SetWindowPos($Wiz_Message, $HWND_TOPMOST + $HWND_TOP, 0, 0, 0, 0, BitOR($SWP_NOMOVE,$SWP_NOSIZE))
;--------------------------------------------------------------------------
; Passage de la fenêtre en Mode TOP
;--------------------------------------------------------------------------
Func SetWindowPos($hwnd, $InsertHwnd, $X, $Y, $cX, $cY, $uFlags)
$ret = DllCall("user32.dll", "long", "SetWindowPos", "hwnd", $hwnd, "hwnd", $InsertHwnd, _
"int", $X, "int", $Y, "int", $cX, "int", $cY, "long", $uFlags)
EndFunc

Code : Tout sélectionner
WinSetOnTop("[CLASS:SciTEWindow]", "", 1)
Msgbox(0,"","fenetre??")Code : Tout sélectionner
#include <Winapi.au3>
#include <Constants.au3>
Global $pRect = DllStructCreate($tagRect)
$win = WinGetHandle("[class:SciTEWindow]")
DLLCall("user32.dll","int","GetWindowRect", "hwnd", $win, "ptr",DllStructGetPtr($pRect))
MsgBox(0,"","Position:"&DllStructGetData($pRect,1) & ", "& DllStructGetData($pRect,2) & @LF & _
"Taille:"&DllStructGetData($pRect,3)-DllStructGetData($pRect,1) & ", " & _
DllStructGetData($pRect,4)-DllStructGetData($pRect,2) & @LF )
_WinAPI_SetWindowPos($win,$HWND_TOPMOST,DllStructGetData($pRect ,1),DllStructGetData($pRect ,2),DllStructGetData($pRect ,3)-DllStructGetData($pRect ,1),DllStructGetData($pRect ,4)-DllStructGetData($pRect ,2),$SWP_SHOWWINDOW)
;On vide la mémoire
$pRect = 0
Exit
