AutoHotkey Community

It is currently May 27th, 2012, 1:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: April 16th, 2009, 5:41 am 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Sean's script uses COM. I never had a success using scripts with COM. I don't know what it is and am quite "afraid" of it. Can anybody, please, explain or give me a link where I could learn how to use it? Thank you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 5:49 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Benny-D wrote:
Sean wrote:
Those are called DirectShow Filters, based on COM. You can use them even inside AHK.

Sean, is this script supposed to work as a kind of replacement for a codec? Will it work for any player? What's the main function of your script?


Sean's script is simply demonstrating how applications can access the DirectShow Filters through COM, which is why media players such as Real Player or Windows Media Player can play more or less files depending on the codecs (er, I guess the correct term is "DirectShow Filters," but they are more commonly referred to as codecs?) installed on your computer.
(At least, this is my understanding. Apologies if I am mistaken..)

@ Your second post: (You should edit rather than double post in the future)
There is a thread devoted to the AHK release of COM that can be found here. However, COM is not only an AHK device, but used by many languages.

I've only discovered COM through AHK since it is my only programming experience, and my very limited knowledge of it has been mainly achieved through trial and error, as well as looking at other scripts on the forum that use COM, so I feel I should let someone other than myself give any further explanation.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 5:58 am 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Laszlo wrote:
After I installed DivX, RealPlayer started to play more video, like MPEG-4, with .mpg extension, but also .avi files. It finds codecs of other programs.
What OS are you using and where did you get your DivX from? I just installed DivX7 from one website, but the video still can't be played. I am using Windows XP.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 6:12 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
For codecs, I would suggest the Combined Community Codec Pack found at http://www.cccp-project.net. So far I haven't encountered anything it doesn't have codecs for.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 6:32 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Laszlo wrote:
In Vista the clock.avi file is missing, too. I did not get any error message, though.
COM.ahk in your system may be outdated, download it again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 6:35 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Krogdor wrote:
Sean's script is simply demonstrating how applications can access the DirectShow Filters through COM
Right. What I did is essentially the same as MCI does instead for you when calling mciSendString.
http://www.autohotkey.com/forum/topic20666.html
Code:
DllCall("winmm\mciSendStringA", "str", "open """ sFile """ alias mmedia type mpegvideo style overlapped shareable", "Uint", 0, "Uint", 0, "Uint", 0)
DllCall("winmm\mciSendStringA", "str", "play mmedia", "Uint", 0, "Uint", 0, "Uint", 0)

BTW, the documentation on DirectShow in MSDN:
http://msdn.microsoft.com/en-us/library/dd375454.aspx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 7:15 pm 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Sean and Krogdor, thank you!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 12:10 am 
but how and where can use it?
i dont know any thing about, plz hlp


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group