Blastradius Posted February 8, 2008 Share Posted February 8, 2008 $Object = ObjCreate( "WMPlayer.OCX" ) I have been trying to figure out what kind of functions and variables i can read from Windows Media Player. So far, i managed to find play, stop, pause and a way to toggle full screen on/off. Obviously, thats not much. I've trying to read duration, current location, sizes of the current video and such. I realize this question isn't directly related to AutoIt, but nonetheless i hope for some help. Where can i find the variable/function documentation of WMP? Please do not direct me by saying "MSDN" because its so sloppy and hard to find anything at all, believe me - i tried. Thanks! Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 8, 2008 Share Posted February 8, 2008 Hi, search for WMMedia on this forum. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ptrex Posted February 8, 2008 Share Posted February 8, 2008 @allMaybe this is a good start : Do you Rock ?regardsptrex 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...
Blastradius Posted February 8, 2008 Author Share Posted February 8, 2008 Hi, searching for WMMedia did some good. Found a nice library by CFire to learn and improve upon. The only thing i still have a problem to figure out is to determine the current video height, width and zoom. Any chance anyone would know this? Thank you all. Link to comment Share on other sites More sharing options...
Blastradius Posted February 9, 2008 Author Share Posted February 9, 2008 Bump. Link to comment Share on other sites More sharing options...
Blastradius Posted February 9, 2008 Author Share Posted February 9, 2008 ; ============================================================================== ; Name : _WMGetMediaHeight ; Syntax : _WMGetMediaHeight() ; Description : Gets the height of the current media in pixels ; ============================================================================== Func _WMGetMediaHeight() If $pObject <> 0 Then Return $pObject.currentMedia.imageSourceHeight EndIf EndFunc ; ============================================================================== ; Name : _WMGetMediaWidth ; Syntax : _WMGetMediaWidth() ; Description : Gets the width of the current media in pixels ; ============================================================================== Func _WMGetMediaWidth() If $pObject <> 0 Then Return $pObject.currentMedia.imageSourceWidth EndIf EndFunc Be sure to properly check if some media is loaded; otherwise critical error. 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