Löscht das Control
#include <GuiAVI.au3>
_GUICtrlAVI_Destroy ( ByRef $hWnd )
$hWnd | Control-ID / Handle des Controls |
Erfolg: | True, $hWnd wird auf 0 gesetzt |
Fehler: | False |
Funktioniert nur mit AVI-Controls welche mit _GUICtrlAVI_Create() erstellt wurden
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GuiAVI.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
Local $sWow64 = ""
If @AutoItX64 Then $sWow64 = "\Wow6432Node"
Local $hGui, $hAVI, $sFile = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE" & $sWow64 & "\AutoIt v3\AutoIt", "InstallDir") & "\Examples\GUI\SampleAVI.avi"
; Erstellt eine GUI
$hGui = GUICreate("AVI: Löschen (Extern)", 300, 100)
$hAVI = _GUICtrlAVI_Create($hGui, "", -1, 10, 10)
GUISetState(@SW_SHOW)
; Öffnet das Beispiel AutoIt AVI ab
_GUICtrlAVI_Open($hAVI, $sFile)
; Spielt das Beispiel AutoIt AVI ab
_GUICtrlAVI_Play($hAVI)
Sleep(3000)
; Stoppt den AVI Clip nach 3 Sekunden
_GUICtrlAVI_Stop($hAVI)
; Schließt den AVI Clip
_GUICtrlAVI_Close($hAVI)
MsgBox($MB_SYSTEMMODAL, "Information", "Das AVI-Control wird zerstört")
_GUICtrlAVI_Destroy($hAVI)
; Die Schleife wiederholt sich, bis der Benutzer eine Beenden-Aktion auslöst
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example