♣Outils♣
Ce lien n'est pas visible, veuillez vous connecter pour l'afficher. Je m'inscris!
♣installation de WinAPIEx.au3♣
♣installation de WinAPIEx.au3♣
1°extraite
2°mettre les fichier extrait dans ...\AutoIt3\Include
2°mettre les fichier extrait dans ...\AutoIt3\Include
crée un koda simple comme :
PHP:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 236, 157, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 0, 16, 115, 33, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Close", 136, 16, 107, 33, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Exit", 40, 128, 139, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
pour voir transparant mettre :
PHP:
$alphakey = 0x123456
puis
PHP:
_WinAPI_SetLayeredWindowAttributes($Form1, $AlphaKey, 0, $LWA_COLORKEY)
_WinAPI_DwmExtendFrameIntoClientArea($Form1)
Guisetstate()
PHP:
#include <WinAPIEx.au3>
ce qui donne au final :
PHP:
#include <WinAPIEx.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$alphakey = 0x123456
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 236, 157, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 0, 16, 115, 33, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Close", 136, 16, 107, 33, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Exit", 40, 128, 139, 41, $WS_GROUP)
_WinAPI_SetLayeredWindowAttributes($Form1, $AlphaKey, 0, $LWA_COLORKEY)
_WinAPI_DwmExtendFrameIntoClientArea($Form1)
Guisetstate()
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd