New plugin: Windows Media Player Announcer

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

How do you like the new Windows Media Player Announcer plug-in for XChat-2?

I love it! Finally, I can announce my songs without installing WinAMP!
6
30%
I hate it! Who uses Windows Media Player?
11
55%
It's alright, but why does it create that annoying dialog?
3
15%
 
Total votes : 20

New plugin: Windows

Postby David007 » 30 May 2005 16:52

Dear Folks,

I have created a new plug-in for XChat-2 that allows you to announce the current song in Windows Media Player. It also allows control of the player. Put the plug-in in your plugins directory type "/wmpahelp" for a list of commands.

http://www.intergate.com/~ucullen/wmpa

Source code is available too, so I expect to see improvements and patches! The only problem is that now you need MFC, COM, ActiveX, and probably Visual Studio 6.0 to compile it.

Thank you,
David
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 31 May 2005 23:06

It appears that the Application Extention requires more than mfc42d.dll being in ~Windows\system.
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

WMPA needs Windows M

Postby David007 » 31 May 2005 23:10

Alchera wrote:It appears that the Application Extention requires more than mfc42d.dll being in ~Windows\system.


Oops. I made a Debug version of the DLL. I forgot you'd need debug DLLs. I'll upload a Release version in a jiffy.

It's up.

David
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 31 May 2005 23:45

Ok! Loaded error free and bloody BRILLIANT!!!!!! :D

Excellent work David007.
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

WMPA 0.9.9

Postby David007 » 31 May 2005 23:49

Alchera wrote:Ok! Loaded error free and bloody BRILLIANT!!!!!! :D

Excellent work David007.

Thanks! I'm glad you like it. Lemme know if you want any new features or changes.

The next version, 0.9.9 has some bug fixes and a feature to show each song privately as it starts.

David
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 31 May 2005 23:52

I have one suggestion (so far LOL) the option to enable/disable the Announce the current song from Windows Media Player in xchat in channels rather than manually typing the command (/song)all the time. :)
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

Enable/Disable auto-

Postby David007 » 31 May 2005 23:56

Alchera wrote:I have one suggestion (so far LOL) the option to enable/disable the Announce the current song from Windows Media Player in xchat in channels rather than manually typing the command (/song)all the time. :)

Good idea. I need your help before I add it though.

What should I call it?

/auto
/autoannounce
/auto [enable/disable]
/auto [on/off]

Any other suggestions?

David
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 01 Jun 2005 00:02

Ummm ... LOL

/auto [on/off] sounds proper. :)

No more suggestions atm (still early in the day for me) ... :D

**Edited**
It would be an idea to indicate which Windows/Media Player versions the plugin is compatible to. I do know it's (apparently) not compatible with Win2k with MP9.
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

WMPA 1.0.1 with auto

Postby David007 » 01 Jun 2005 03:50

Alchera wrote:Ummm ... LOL

/auto [on/off] sounds proper. :)

No more suggestions atm (still early in the day for me) ... :D

**Edited**
It would be an idea to indicate which Windows/Media Player versions the plugin is compatible to. I do know it's (apparently) not compatible with Win2k with MP9.

Your feature has been added:

WMPA 1.0.1 (BETA)

Use

"/auto on" to turn it on (off by default)
"/auto off" to turn it off
"/auto" to see the current state

The auto state is saved in the registry so it will persist between uses of the plug-in.

As far as compatibility, you prolly need the latest version of WMP installed which is version 10. I had problems with 9. If you'll test my theory, I'll add it to the web site.

David
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 01 Jun 2005 06:08

David007 wrote:As far as compatibility, you prolly need the latest version of WMP installed which is version 10. I had problems with 9. If you'll test my theory, I'll add it to the web site.

I use WMP10 and XP but I have a friend that uses Win2k & MP9. I do not know if version 10 is available for any version of Windows other than XP/Server 2003.

It was they who made me aware of the WMP9 bit. :)
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

Postby Alchera » 02 Jun 2005 00:51

Alchera wrote:I do not know if version 10 is available for any version of Windows other than XP/Server 2003.

Windows Media Player 10 is available with Windows XP Service Pack 2 only! So, as Windows Media Player 9 is redundant, nothing to bother with David007. :)

Your updated plugin is just about purrrrrfect. The new option works very well. :)

The only 'bug' (I suppose you could call it) would be the inablility to minimise the window to the system tray and/or closing off the window when not using the plugin.

I have not seen in an IRC client (since mIRC and WMP 6.4) this ability of any other plugin/script (SpR being the last mIRC script) that could use the default Media Player so unobtrusively. Brilliant work! :wink:
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

Postby David007 » 02 Jun 2005 04:35

Alchera wrote:
Alchera wrote:I do not know if version 10 is available for any version of Windows other than XP/Server 2003.

Windows Media Player 10 is available with Windows XP Service Pack 2 only! So, as Windows Media Player 9 is redundant, nothing to bother with David007. :)

Your updated plugin is just about purrrrrfect. The new option works very well. :)

The only 'bug' (I suppose you could call it) would be the inablility to minimise the window to the system tray and/or closing off the window when not using the plugin.

I have not seen in an IRC client (since mIRC and WMP 6.4) this ability of any other plugin/script (SpR being the last mIRC script) that could use the default Media Player so unobtrusively. Brilliant work! :wink:

Thank you very much for the kind words. I only hope others will find as much use for this plug-in as yourself. I find it easier to use than the WMP itself.

I'm sorry that WMP 9 doesn't work with the plug-in. I will see if I can get the WMP 9 ActiveX control to work. My bugs might have been caused by something other than the ActiveX control.

You can "close" the plug-in window by typing "/unload wmpa". I haven't figured out a way to unload a plug-in because the function to do that is not accessible to a plug-in. I will work on that.

I tried to get an earlier version of the plug-in to minimize to the system-tray, but it did not work. I think I know enough now to add this feature.

Thank you again for your praise.
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 02 Jun 2005 04:45

David007 wrote:Thank you again for your praise.

Believe me, it's very well deserved. :)
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

WMPA does not work o

Postby David007 » 02 Jun 2005 05:26

Dear Users,

It will help me debug the problems with the plug-in on Win2K if you can send me a copy of these two files:

C:\%SYSTEMROOT%\SYSTEM32\WMP.DLL
C:\%SYSTEMROOT%\SYSTEM32\WMP.OCX

%SYSTEMROOT% will be WINNT on most Win2K systems.

Also, please start Windows Media Player and go to

[Help]->[About Windows Media Player]

and report what version it says there.

I suspect the problem is that the ActiveX control used on Win2K is for version 6.4 of the interface. My plugin uses version 7 of the interface. If I can somehow install both interfaces simultaneously, I will develop a version of the plug-in for Win2K.

Thank you for your help and feedback.
David
David007
 
Posts: 27
Joined: 26 Mar 2005 17:05
Location: United States

Postby Alchera » 02 Jun 2005 12:53

The files you need are here.

Media Player version: 9.00.00.3250

:mrgreen:
"Live Outside The Square You Live In"
"Vivez hors du quartier où vous habitez"
User avatar
Alchera
 
Posts: 939
Joined: 28 May 2005 16:30
Location: Ballarat Victoria, Australia

Next

Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest