Would there be some way to attach the winmm´s system window to a new parent grid? The controls like text or image don´t exept this, only the main window as in code below.
Just tested on Win98. Some times this craches as if the variables declared in DllCall were bigger then assumed. Edit: tested on xp without crashing.
The way AHK converts default strings in numbers is very handy, but I didn´t find more details about on how this is done, and I didn´t learn c yet.
avi := "D:\BIN\MYAVI.AVI" ;Put your path + avi here and test with smaller avi size or ajust windows! Gui, 1:Add,text,, Gui, 2:+owner1 Gui, 2:Add, text,, Gui, 2:-caption Gui, 1:Show, x0 y0 W600 H500 , Pil's AviPlayer Gui, 2:Show, x50 y50 W550 H450, title ;ControlGet, whndl, Hwnd,, Static1 WinGet, whndl ,ID, title whndl += 0 buffer:= "0" vsc := VarSetCapacity(buffer,256,0) mcicom = open %avi% type avivideo alias xbmpeg gosub winmm mcicom = window xbmpeg handle %whndl% gosub winmm mcicom = play xbmpeg from 0 gosub winmm winmm: Result := DllCall("Winmm.dll\mciSendStringA", "str", mcicom, "str", buffer, "Uint", 256, "Uint", 0 ) return GuiClose: mcicom = close xbmpeg gosub winmm ExitApp
Regards,
Noel
Still can´t hide my byte.