http://www.glbasic.com/forum/index.php?topic=2502.0
playfile("test.avi",1)
SHOWSCREEN
MOUSEWAIT
END
FUNCTION foo:
ENDFUNCTION
INLINE
}
extern "C" int __stdcall mciSendStringA(const char*,int,int,void*);
namespace __GLBASIC__
{
ENDINLINE
FUNCTION playfile: file$, If_fullscreen = TRUE
local a$, full$
IF If_fullscreen = True THEN full$ = "fullscreen"
a$="play "+file$+" "+full$;
INLINE
mciSendStringA(a_Str.c_str(),0,0,GLBASIC_HWND());
ENDINLINE
ENDFUNCTION
Does it work?
I dont test it :D
Doesnt work for me.... Vista?!
I made a working example for full screen.
Get the MCI library from here:
http://www.glbasic.com/forum/index.php?topic=2502.0
The library has play pause resume stop and volume.
I removed the hotwait function and made the code more optimized
cool!
please let me know if it works, i want to get this working fullscreen for all windows
yopp, that works for me!