| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #11 (permalink) |
| Retired Team Member | 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 |
| | |
| | #12 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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... |
| | |
| | #13 (permalink) | |
| Retired Team Member | Quote:
__________________ Sincerly / Med venlig hilsen, Thomas Starup aka LordMessi MediaPortal Design Team Member Author/Developer of MPLE IRC : EFNet @ #mediaportal Nick: LordMessi Skype : LordMessi | |
| | |
| | #14 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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... |
| | |
| | #15 (permalink) |
| Retired Team Member Join Date: Apr 2005 Location: Stuttgart Age: 42
Posts: 731
Thanks: 7
Thanked 7 Times in 7 Posts
Country: | 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? |
| | |
| | #17 (permalink) |
| Portal Member Join Date: Dec 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #18 (permalink) |
| Portal Member Join Date: Dec 2004
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #19 (permalink) |
| Portal Member Join Date: Jul 2005 Location: Milan, Italy
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 |
| | |
| | #20 (permalink) |
| Portal Member Join Date: Dec 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
| 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 ![]() |
| | |
![]() |
| Bookmarks |
| Tags |
| myscript |
| Thread Tools | |
| Display Modes | |
| |
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 |