MyScript (4 Viewers)

Clodo

Portal Pro
July 8, 2005
53
0
Milan, Italy
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...
 

LordMessi

Retired Team Member
  • Premium Supporter
  • July 4, 2005
    449
    0
    45
    Ørsø, Dronninglund, Denmark
    Home Country
    Denmark Denmark
    Clodo said:
    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.
     

    Clodo

    Portal Pro
    July 8, 2005
    53
    0
    Milan, Italy
    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...
     

    Koschel

    Retired Team Member
  • Premium Supporter
  • April 6, 2005
    1,044
    68
    Stuttgart
    Home Country
    Germany Germany
    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?
     

    liborc

    Portal Pro
    December 22, 2004
    52
    0
    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

    Portal Pro
    December 22, 2004
    52
    0
    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
     

    Clodo

    Portal Pro
    July 8, 2005
    53
    0
    Milan, Italy
    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
     

    WhiteDog

    Portal Member
    December 19, 2005
    11
    0
    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 :)
     

    Users who are viewing this thread

    Top Bottom