BananaFredSoft Posted July 23, 2007 Share Posted July 23, 2007 Is it possible to play .avi files with audio in Autoit? Thanks in advance. -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
BrettF Posted July 23, 2007 Share Posted July 23, 2007 Is it possible to play .avi files with audio in Autoit?Thanks in advance.WMP Com will do the job Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ptrex Posted July 23, 2007 Share Posted July 23, 2007 @all this will get you started. #include <GUIConstants.au3> #include <wmp.au3> ; == GUI generated with Koda == $Form1 = GUICreate("AForm1", 518, 439, 192, 125) $wmp = _wmpcreate(1, 8, 8, 425, 425);creates object _wmpsetvalue( $wmp, "nocontrols" );hides controls GUISetState(@SW_SHOW) _wmploadmedia( $wmp, @HomeDrive & "\WINDOWS\clock.avi" );loads media Sleep(1000) _wmpsetvalue( $wmp, "controls" );shows controls While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
BananaFredSoft Posted July 23, 2007 Author Share Posted July 23, 2007 Thanks to both of you! -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
BananaFredSoft Posted July 23, 2007 Author Share Posted July 23, 2007 For some reason it won't play videos correctly. It just shows a black box and plays back the audio, but no image. -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
BananaFredSoft Posted July 24, 2007 Author Share Posted July 24, 2007 No one knows how to fix this or why it is happening? -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2007 Share Posted July 24, 2007 No one knows how to fix this or why it is happening?Could we please have a sample of your code?? And do you have the correct AVI codecs installed?? from memory WMP didn't really like them Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BananaFredSoft Posted July 24, 2007 Author Share Posted July 24, 2007 Here's the code used to create it. $display = _wmpcreate(1, 181, 10, 280, 210) _wmploadmedia($display, $readfrom, 0) _wmpsetvalue($display, "control")oÝ÷ Ø Ý¶©¬¿¥«¬y»¶Ü¡×ºÚ"µÍY ÌÍÝYÝ]ÈH ][ÝÜ^I][ÝÈ[WÝÛÙ][YJ ÌÍÙÜ^K ][ÝÜ]ÙI][ÝÊBIÌÍÝYÝ]ÈH ][ÝÜ]ÙI][ÝÂ[ÙRY ÌÍÝYÝ]ÈH ][ÝÜ]ÙI][ÝÈ[WÝÛÙ][YJ ÌÍÙÜ^K ][ÝÜ^I][ÝÊBIÌÍÝYÝ]ÈH ][ÝÜ^I][ÝÂ[Y I hope this helps. I am not sure about the AVI codecs, but WMP plays avis just fine when it's not in a GUI. -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat 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