WOW PhiLho

a great demo!!! thanks for your time!!!! your script work here...
ok, so now i have put it in my script like that and downloaded your small avi, just testing if i see the avi..but i think there is something wrong..
Code:
Gui, Add, Picture, x-4 y10 w770 h490, C:\gui.jpg
Gui, Add, Button, x526 y420 w200 h30, START_OPERA
Gui, Show, x15 y21 h494 w759,
START_OPERA:
Run, C:\Programme\Opera\Opera.exe
Return
Gui +LastFound
guiID := WinExist()
width := 300
h1 := GuiAddAVI(guiID, 10, 10, width, 130, 165)
If h1 is not integer
MsgBox %h1%
Gui Add, Button, x10 y150 w50 v11 gCreateWindow_AVI_Control, Start
Gui Add, Button, x70 y150 w50 v01 gCreateWindow_AVI_Control, Stop
h2 := GuiAddAVI(guiID, 350, 10, width, 130, 1006, "WIADefUI.dll")
If h2 is not integer
MsgBox %h2%
Gui Add, Button, x350 y150 w50 v12 gCreateWindow_AVI_Control, Start
Gui Add, Button, x420 y150 w50 v02 gCreateWindow_AVI_Control, Stop
;~ h3 := GuiAddAVI(guiID, 650, 10, width, 130, A_WinDir . "\Clock.avi")
;~ h3 := GuiAddAVI(guiID, 650, 10, width, 130, A_ScriptDir . "\CtrlAltDel.avi")
h3 := GuiAddAVI(guiID, 650, 10, width, 130, A_ScriptDir . "\G.avi")
If h3 is not integer
MsgBox %h3%
Gui Add, Button, x650 y150 w50 v13 gCreateWindow_AVI_Control, Start
Gui Add, Button, x720 y150 w50 v03 gCreateWindow_AVI_Control, Stop
Gui Add, Button, x10 y200 w50 gCreateWindow_AVI_Exit, End
Gui Show, w960, AVI Demo
Return
CreateWindow_AVI_Control:
StringLeft action, A_GuiControl, 1
StringRight control, A_GuiControl, 1
If (action = 1)
GuiControlStartAVI(h%control%)
Else If (action = 0)
GuiControlStopAVI(h%control%)
Return
CreateWindow_AVI_Exit:
ExitApp
}
ButtonEXIT:
GuiClose:
ExitApp