trancexx Posted October 28, 2010 Share Posted October 28, 2010 (edited) If you have been going thru AutoItObject files ever, you have probably noticed script called DirectShow.au3. That's minimalistic player made to utilize DirectX technology.Here's a version of that script (or the other way around) with much more features. This script will take advantage of some new features of Windows 7 system. Windows 7 specific interfaces: ITaskbarList3ICustomDestinationListOther used interfaces:IGraphBuilderIMediaControlIMediaEventExIVideoWindowIMediaPositionIBasicAudioIBasicVideoISequentialStreamIObjectCollectionIShellLinkIPropertyStoreIObjectArrayIMMDeviceEnumeratorIMMDeviceIAudioEndpointVolumeIAudioMeterInformationIBaseFilterIFileSourceFilterIEnumPinsScript (needed images are inline as PNGs):DirectShow_Player.au3Btw, ITaskbarList3 was already covered by wraithdu and Beege, don't miss their examples here and here. One more thanks to them....oh, and AutoItObject is here. You would need 1.2.2.0 version.edit: new script Edited December 16, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Ascend4nt Posted October 29, 2010 Share Posted October 29, 2010 Very cool. Awesome job! My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 29, 2010 Share Posted October 29, 2010 Awesomeness defined. An angel have come to earth! On a sidenote, it refuses to play my flv file (it shouldn't, it plays in MPC-HC and WMP). _RenderFile returns @error = 1. How would I go on with finding out why? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted October 30, 2010 Author Share Posted October 30, 2010 (edited) Workaround could be to use AddSourceFilter method and what comes afterwards, in that case. Just looked at a posted code and I see that I've left _AddTaskbarButtons outside _WM_TASKBUTT_CREATED function. It should really be in otherwise one could end up without taskbar buttons. Maybe I'll update the attachment. edit: forum was down yesterday? Edited October 30, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
UEZ Posted October 30, 2010 Share Posted October 30, 2010 Great stuff trancexx! But the aspect ratio for images is not working properly. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
trancexx Posted October 30, 2010 Author Share Posted October 30, 2010 Great stuff trancexx! But the aspect ratio for images is not working properly. Br,UEZNot properly how? I haven't added "keep aspect ratio" option. There is only "Fit window" and "Original size". Are you saying that those aren't working properly?I've made an update. Corrected _AddTaskbarButtons issue and added few more comments for those who would be interested in seeing how is something done in the script. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
UEZ Posted October 30, 2010 Share Posted October 30, 2010 If you load an image with e.g. 1944x1296 (3:2), your script displays it with a fixed windows size (530x600) which looks distorted. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
trancexx Posted October 30, 2010 Author Share Posted October 30, 2010 If you load an image with e.g. 1944x1296 (3:2), your script displays it with a fixed windows size (530x600) which looks distorted.Br,UEZYes, I see. It means I should keep aspect ratio in case rendered doesn't fit into the rendering area.Ok, that makes sense. Will see how to implement that. Thank you. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
UEZ Posted October 30, 2010 Share Posted October 30, 2010 In line 606 ($aCall = $oBasicVideo.GetVideoSize(0, 0)) you can get the image dimension in $aCall[1] and $aCall[2]. With that information you can resize you window appropriately. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
trancexx Posted October 30, 2010 Author Share Posted October 30, 2010 (edited) It's little lower, inside _SetSize function. I'm bending the image, not the GUI, if it would require to take most of the desktop area. Complete control of the win station is the most important thing, the way I see it. Btw, how's jumplist hanging? Edited October 30, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
ValeryVal Posted November 1, 2010 Share Posted November 1, 2010 Cool player. What is about additional option of it - "Capturing a Window Screen Shot" ? Trick to enable this option was discussed here (): http://www.codeproject.com/kb/dialog/screencap.aspx Thank you The point of world view Link to comment Share on other sites More sharing options...
nikitanova Posted November 3, 2010 Share Posted November 3, 2010 This is sooo cool! Really nice work. Exceptional! Link to comment Share on other sites More sharing options...
trancexx Posted December 14, 2010 Author Share Posted December 14, 2010 I've made an update to show some new things that are available with AutoItObject 1.2.2.0. If you go thru the code you will see there is no use of DLLCall function. This is because it's replaced with, so called, DLL-objects to call functions from desired DLLs. Also variant data type is used (byref even) with IPropertyStore, usage of few new interfaces added to be able to have VU-meter control (or whatever that is) and so on...Btw, these new interfaces are the same that are used for setting volume level for the system on vista and above - master volume. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
wraithdu Posted December 14, 2010 Share Posted December 14, 2010 Ah, that should replace my plugin quite nicely then. Odd feeling when something you've created becomes obsolete... Link to comment Share on other sites More sharing options...
trancexx Posted December 14, 2010 Author Share Posted December 14, 2010 Ah, that should replace my plugin quite nicely then. Odd feeling when something you've created becomes obsolete...Yes, but you see I forgot to give you deserved credit. Your code was consulted.I'll make a remark in the code for the next time I update the script. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
wraithdu Posted December 14, 2010 Share Posted December 14, 2010 Sweet, thanks. Always appreciated Link to comment Share on other sites More sharing options...
Beege Posted December 14, 2010 Share Posted December 14, 2010 Wow I cant belive I missed this example! This is really great Trancexx. Its demonstrates so much. Its really going to help me a lot! Thank you very much! Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
WeiHeXie Posted December 15, 2010 Share Posted December 15, 2010 Can not play MPG video format! Link to comment Share on other sites More sharing options...
Ascend4nt Posted December 16, 2010 Share Posted December 16, 2010 Looking through some of the code.. wow. Some (seemingly simple) things are so complicated, but you handle them very well. I added a call to '_UnregisterExtension()' in the _Quit() function though, because I don't want a script player permanently added to my registry, even if its pretty cool. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
trancexx Posted December 16, 2010 Author Share Posted December 16, 2010 I have it pinned to the taskbar and if I unregister I can't use it from the jumplist. ...Glad that you managed through the code. I've added one more function to load files alternately using manual PIN manipulation enumerated with IEnumPins when GraphBuilder.RenderFile would fail. @AdmiralAlkex, would you mind trying it now for that flv? I can play "problematic" mp3 files here now. ♡♡♡ . eMyvnE 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