choto Posted September 5, 2005 Share Posted September 5, 2005 I know there is a control in autoit to play an avi file inside a gui, but it cannot read many formats...so, my question is: Is there any way to put the ms media player inside my gui, I DON'T want to put the ms media player itself, only a window that show the media file I want to play, without any buttons or anything. thanks. Link to comment Share on other sites More sharing options...
PerryRaptor Posted September 5, 2005 Share Posted September 5, 2005 You can find the answer here...You'll need to use the AutoIT beta version because you'll need to use COM.MSDN WMPlayer Reference & SDK Link to comment Share on other sites More sharing options...
kjactive Posted September 6, 2005 Share Posted September 6, 2005 (edited) I could not make WMPlayer 7 object play movies embedded in autoit, only sound but there is another solution and that is to use my old friend Jeff Glatt's CWebpage library that can be made embedded into a window and play almost any code like mp3, Wave, avi, Vob, .wmv etc. here's a small example script...; example on useing the medie player object with Jeff Glatt CWebPage library #include "GUIConstants.au3" $dll = DLLOpen("cwebpage.dll") $hwnd = GUICreate("MediePlayer...",419,305,-1,-1) $pos = WinGetClientSize($hwnd) DLLCall($dll,"long","EmbedBrowserObject","hwnd",$hwnd) GUISetState() $a = '<EMBED src="D:\Video\Anne\Anne_Mette.wmv" hidden=0 autostart=1 loop=1' $a = $a&' AutoSize=1 AutoRewind=1 ShowControls=0 ShowDisplay=1 VideoBorderWidth=10 VideoBorder3D=0' $a = $a&' Volume=-1000 mute=0 width=280 height=250 style="border:1 solid red">' DLLCall($dll,"long","DisplayHTMLStr","hwnd",$hwnd,"str",$a) While 1 $msg = GUIGetMsg() If $msg = -3 Then ExitLoop WEnd $ret = DLLCall($dll,"long","UnEmbedBrowserObject","hwnd",$hwnd) DLLClose($dll)Instate of the EMBED html tag one could use PARAM, for long time ago I wrote a medieplayer with CWebpage library in autoit3 - still downloadable and it uses the PARAM tag if one wants to have a look...Download at site:http://www.sitecenter.dk/latenight/nss-folder/au3medieWMplayer Documentation on pagehttp://msdn.microsoft.com/library/default....k/paramtags.aspCWebpage library is downloadable from:http://www.codeguru.com/Cpp/I-N/ieprogram/article.php/c4379kjactive Edited September 6, 2005 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
choto Posted September 8, 2005 Author Share Posted September 8, 2005 Thank you , this example is waht I am looking for.... thanks PerryRaptor too. Link to comment Share on other sites More sharing options...
choto Posted September 8, 2005 Author Share Posted September 8, 2005 Only one more thing, what license has cwebpage library?, can I use it in my own programs...free ones? comercial ones? thanks. Link to comment Share on other sites More sharing options...
kjactive Posted September 10, 2005 Share Posted September 10, 2005 (edited) read documentation related to the library but I don't think that there is any restrictions as I know Jeff to make a lot of freeware applications and non is with licence needs and he included the source code... kjactive Edited September 10, 2005 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now