MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2005-10-22, 20:04   #11 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Location: Ørsø, Dronninglund, Denmark
Age: 29
Posts: 443
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to LordMessi Send a message via Skype™ to LordMessi
Default Python - why?

It's because that XBMC uses Python as the script language.

Therefore one might migrate the scripts already written to MP.
__________________
Sincerly / Med venlig hilsen,

Thomas Starup aka LordMessi
MediaPortal Design Team Member
Author/Developer of MPLE
IRC : EFNet @ #mediaportal Nick: LordMessi
Skype : LordMessi
LordMessi is offline   Reply With Quote
Old 2005-10-22, 20:16   #12 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I use XBMC and some python scripts, can be very very interesting the migration of actual existing scripts, but...

i think that exists a layer of methods/events between xbmc script and xbmc (for example, for drawings items on screen), and for a port we need to re-create the same layer with the same methods/events declarations in MP.... a big big works...
Clodo is offline   Reply With Quote
Old 2005-10-22, 20:21   #13 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Location: Ørsø, Dronninglund, Denmark
Age: 29
Posts: 443
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to LordMessi Send a message via Skype™ to LordMessi
Default

Quote:
Originally Posted by Clodo
I use XBMC and some python scripts, can be very very interesting the migration of actual existing scripts, but...

i think that exists a layer of methods/events between xbmc script and xbmc (for example, for drawings items on screen), and for a port we need to re-create the same layer with the same methods/events declarations in MP.... a big big works...
Sure...I'll tell the users that asked.
__________________
Sincerly / Med venlig hilsen,

Thomas Starup aka LordMessi
MediaPortal Design Team Member
Author/Developer of MPLE
IRC : EFNet @ #mediaportal Nick: LordMessi
Skype : LordMessi
LordMessi is offline   Reply With Quote
Old 2005-10-26, 23:18   #14 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I've updated the release.
Some bugfixed and now support additional external assemblies references.

Three scripts included:
- A sample messagebox (the same of screenshot in first post) when users press CTRL+X
- When MP start, show c:\video\test.avi and go automagically to full-screen
- A script that say "Welcome" when MP starts, "GoodBye" when ends, and the channel name when users switch between TV channels. Use external assembly, so remember to copy the Interop.Speech.Dll in MP main directory.

Enjoy!

P.S. If someone already trying to write a script, please tell me, because until people start to use it, i don't think about backward compatibility...
Clodo is offline   Reply With Quote
Old 2005-10-28, 10:44   #15 (permalink)
Retired Team Member
 
Koschel's Avatar
 
Join Date: Apr 2005
Location: Stuttgart
Age: 42
Posts: 731
Thanks: 7
Thanked 7 Times in 7 Posts

Country:

My System

Send a message via MSN to Koschel
Default

I recieve a "Compilation Error" with the speech.mps, the others are working fine.
After copying the Interop.SpeechLib.Dll I'll recieve this:
Exception has been thrown by the target of an invocation - COM Object with CLSID {96749377-3391-11D2-9EE3-00C04F797396} is either not valid or not registered

What's wrong?
__________________
Koschel is offline   Reply With Quote
Old 2005-10-28, 23:35   #16 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Try to download SAPI (normally comes with XP) Download HERE if you need it.
Clodo is offline   Reply With Quote
Old 2005-12-03, 09:24   #17 (permalink)
Portal Member
 
Join Date: Dec 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hello Clodo. Thanks for this plugin, I think a there are very many ways it can get useful. I was trying to access the Win32 API with a line of code similar to this:

[DllImport("User32.dll")]
static extern Boolean MessageBeep(UInt32 beepType);

but I keep getting an error message. Is it possible at all to use external API calls or am I just doing something wrong?

Thanks,

Libor
liborc is offline   Reply With Quote
Old 2005-12-05, 08:56   #18 (permalink)
Portal Member
 
Join Date: Dec 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Okay, I just realized what I was doing wrong - everything works like a charm now. I won't post the solution as I was just being stupid....

Thanks again for this plugin - I really believe there's a huge potential in it.

Libor
liborc is offline   Reply With Quote
Old 2005-12-05, 12:21   #19 (permalink)
Portal Member
 
Clodo's Avatar
 
Join Date: Jul 2005
Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi liborc, thanks to you for using this plugin!!

I'm also think that this plugin can be very useful in many situation, the problem is that it's not easy to use it...

if many people start to write script and posts different type of example in this thread, the 'potential' can be discovered..

I'm thinking about many differents stuffs for the next release, generally extension of the base class and better interaction between scripts, but before i'm waiting for more feedback.

bye! Clodo
Clodo is offline   Reply With Quote
Old 2006-01-04, 12:00   #20 (permalink)
Portal Member
 
Join Date: Dec 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I have a small idea for a script.

1. You are browsing in "My Videos"
2. You click on a movie to start playing
3. As soon as you do this, a batch file is started (hidden) that sends blaster codes to the TV to make it switch to S-Video input (using mceir command-line tools).

A friend of me needs something like this. Anybody here who can make a sample script that does this (i'll create the batch file myself offcourse).

Would be a nice example of what MyScript can do
WhiteDog is offline   Reply With Quote
Reply

Bookmarks

Tags
myscript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Myscript: Catching event handler magnuje2 Plugins 0 2006-07-27 22:40
An idea about interoperability and scripting... Clodo General Development (no feature request here!) 5 2005-09-26 12:19


All times are GMT +1. The time now is 04:58.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden