Also ich habe einen Videoplayer erstellt und wunderbar die Enttäuschung ist groß: kein anzeichen von Video/Videofeld.
Mal wieder super Langsam kriege ich das Gefühl ich hab ziemlich viele Probleme.
Spoiler anzeigen
#NoTrayIcon
#include <GUIConstants.au3>
#include <GUIAvi.au3>
#Region ### START Koda GUI section ### Form=D:\Progen\AutoIt\Meine\Forms\Video.kxf
$Form1 = GUICreate("Kleiner Videoplayer", 633, 447, 193, 125)
$Avi1 = _GUICtrlAVI_Create($Form1, "", -1, 32, 32, 561, 329)
$Slider1 = GUICtrlCreateSlider(32, 376, 561, 25)
$Button1 = GUICtrlCreateButton("Start", 32, 408, 89, 25, 0)
$Button2 = GUICtrlCreateButton("Pause", 144, 408, 89, 25, 0)
$Button3 = GUICtrlCreateButton("Weiter", 256, 408, 81, 25, 0)
$Button4 = GUICtrlCreateButton("Stop", 360, 408, 81, 25, 0)
$Button5 = GUICtrlCreateButton("Datei", 464, 408, 81, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
if $cmdline[0]>0 Then
_GUICtrlAVI_Open($Avi1,$cmdline[1])
_GUICtrlAVI_Play($Avi1)
_GUICtrlAVI_Show($Avi1,@SW_SHOW)
EndIf
#cs
_GUICtrlAVI_Seek($hWnd, $iFrame)
#ce
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
_GUICtrlAVI_Close($Avi1)
_GUICtrlAVI_Destroy($Avi1)
Exit
Case $Button5
_GUICtrlAVI_Close($Avi1)
$file=FileOpenDialog("Video auswählen","","Videos(*.avi)",11)
_GUICtrlAVI_Open($Avi1,$file)
_GUICtrlAVI_Play($Avi1)
_GUICtrlAVI_Show($Avi1,@SW_SHOW)
Case $Button1
_GUICtrlAVI_Play($Avi1)
_GUICtrlAVI_Show($Avi1,@SW_SHOW)
Case $Button4
_GUICtrlAVI_Stop($Avi1)
case $Button2,$Avi1
if _GUICtrlAVI_IsPlaying($Avi1) Then
EndIf
Case $Button3,$Avi1
EndSwitch
WEnd