Autostart TV plugin (1 Viewer)

wewe

Portal Pro
August 3, 2005
362
0
63
Herxheim
Home Country
Germany Germany
okay, we did implement:

- Xavier's request to interrupt the countdown by pressing a key (which so far works not yet with Hauppauge remotes)

- NickName's request to control by day which channel to start

BUT:

there is a problem with SVN's after 12.7. We first have to sort that out before we release a new version

[when I say "we" I mean jake78 - who is doing the work and myself - I am doing the Customer Relationship Management :wink: ]

thanks+regards
Jake78 & WeWe
 

Hawkeye

Portal Pro
January 29, 2005
548
87
Halle (Saale)
Home Country
Germany Germany
okay, we did implement:

- Xavier's request to interrupt the countdown by pressing a key (which so far works not yet with Hauppauge remotes)

- NickName's request to control by day which channel to start

BUT:

there is a problem with SVN's after 12.7. We first have to sort that out before we release a new version

[when I say "we" I mean jake78 - who is doing the work and myself - I am doing the Customer Relationship Management :wink: ]

thanks+regards
Jake78 & WeWe

Hi WeWe,

how about the new version release?
 

Pro-Pain

Portal Member
August 21, 2006
17
0
44
Home Country
Germany Germany
Is there any Progress? With the new svn "MediaPortal-svn--01-28-2007--01-04-Rev12771.exe" no configuration is possible. There opens a window containing this:
Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeLoadException: Could not load type 'MediaPortal.Profile.Settings' from assembly 'Core, Version=1.0.2584.1804, Culture=neutral, PublicKeyToken=null'.
   at ProcessPlugins.Autostart.SetupForm.LoadSettings()
   at ProcessPlugins.Autostart.SetupForm.SetupForm_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Configuration
    Assembly Version: 1.0.2584.1829
    Win32 Version: 1.0.2584.1829
    CodeBase: file:///C:/Programme/MediaPortal/Configuration.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Core
    Assembly Version: 1.0.2584.1804
    Win32 Version: 1.0.2584.1804
    CodeBase: file:///C:/Programme/MediaPortal/Core.DLL
----------------------------------------
Utils
    Assembly Version: 1.0.2584.1797
    Win32 Version: 1.0.2584.1797
    CodeBase: file:///C:/Programme/MediaPortal/Utils.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
BassRegistration
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programme/MediaPortal/BassRegistration.DLL
----------------------------------------
Databases
    Assembly Version: 1.0.2584.1808
    Win32 Version: 1.0.2584.1808
    CodeBase: file:///C:/Programme/MediaPortal/Databases.DLL
----------------------------------------
DirectShowLib
    Assembly Version: 1.4.0.1793
    Win32 Version: 1.4.0.1793
    CodeBase: file:///C:/Programme/MediaPortal/DirectShowLib.DLL
----------------------------------------
System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
Microsoft.DirectX.Direct3D
    Assembly Version: 1.0.2902.0
    Win32 Version: 9.05.132.0000
    CodeBase: file:///C:/Programme/MediaPortal/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
Bass.Net
    Assembly Version: 2.3.1.1
    Win32 Version: 2.3.1.1
    CodeBase: file:///C:/Programme/MediaPortal/Bass.Net.DLL
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
RemotePlugins
    Assembly Version: 1.0.2584.1820
    Win32 Version: 1.0.2584.1820
    CodeBase: file:///C:/Programme/MediaPortal/RemotePlugins.DLL
----------------------------------------
Microsoft.DirectX.DirectInput
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///C:/Programme/MediaPortal/Microsoft.DirectX.DirectInput.DLL
----------------------------------------
Microsoft.DirectX
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///C:/Programme/MediaPortal/Microsoft.DirectX.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
jncwmczp
    Assembly Version: 1.0.2584.1804
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
TVCapture
    Assembly Version: 1.0.2584.1810
    Win32 Version: 1.0.2584.1810
    CodeBase: file:///C:/Programme/MediaPortal/TVCapture.DLL
----------------------------------------
TaskScheduler
    Assembly Version: 1.1.1007.26951
    Win32 Version: 1.1.1007.26951
    CodeBase: file:///C:/Programme/MediaPortal/TaskScheduler.DLL
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Interop.X10
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programme/MediaPortal/Interop.X10.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Dialogs
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Programme/MediaPortal/plugins/windows/Dialogs.DLL
----------------------------------------
WindowPlugins
    Assembly Version: 1.0.2584.1817
    Win32 Version: 1.0.2584.1817
    CodeBase: file:///C:/Programme/MediaPortal/plugins/windows/WindowPlugins.dll
----------------------------------------
XihSolutions.DotMSN
    Assembly Version: 2.0.1.15051
    Win32 Version: 2.0.1.15051
    CodeBase: file:///C:/Programme/MediaPortal/XihSolutions.DotMSN.DLL
----------------------------------------
XihSolutions.DotMSN
    Assembly Version: 2.0.1.15051
    Win32 Version: 2.0.1.15051
    CodeBase: file:///C:/Programme/MediaPortal/plugins/windows/XihSolutions.DotMSN.DLL
----------------------------------------
SubtitlePlugins
    Assembly Version: 1.0.2584.1806
    Win32 Version: 1.0.2584.1806
    CodeBase: file:///C:/Programme/MediaPortal/plugins/subtitle/SubtitlePlugins.dll
----------------------------------------
TagReaderPlugins
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Programme/MediaPortal/plugins/tagreaders/TagReaderPlugins.dll
----------------------------------------
ExternalPlayers
    Assembly Version: 1.0.2584.1805
    Win32 Version: 1.0.2584.1805
    CodeBase: file:///C:/Programme/MediaPortal/plugins/externalplayers/ExternalPlayers.dll
----------------------------------------
Interop.iTunesLib
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Programme/MediaPortal/Interop.iTunesLib.DLL
----------------------------------------
Autostart
    Assembly Version: 1.0.2283.18728
    Win32 Version: 1.0.2283.18728
    CodeBase: file:///C:/Programme/MediaPortal/plugins/process/Autostart.DLL
----------------------------------------
ProcessPlugins
    Assembly Version: 1.0.2584.1823
    Win32 Version: 1.0.2584.1823
    CodeBase: file:///C:/Programme/MediaPortal/plugins/process/ProcessPlugins.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>

I am really sad that this won't work anymore, because this manual choosing of
MyTV and fullscreen it with an remote is very annoying.
 

recosta

Portal Member
October 25, 2006
17
0
60
Bergen op Zoom
Home Country
Netherlands Netherlands
Hi there,
As I used to set Autostart to start my music, I was a bit disapointed too because the Autostart plugin is not working anymore. Through my work as ICT engineer I'm a bit familiar with scripting. I'm NOT a programmer but I'm able to help myself ;-)
So, I did some scripting with AutoIt (http://www.autoitscript.com). This is a rather simple and also FREE scripting tool.

Here is some information of my script:
The startscreen of MP does not have much information about button-id's (please guys, don't feel offended). So I figured out the X- and Y-coordinates of the music button, relative to the screen (in case I want to change the resolution).
I started the music section in MP the manual way and closed MP. The next time MP starts it will have the last used menu-option at the middle (so I have a starting point for my script).

As I said, I use MP just to listen my (organised) music. My own 'autostart script' is doing the same thing as the autostart plugin. My script is not sophisticated. Neighter it is checking al lot of things; it simply starts the music section on my pc......and it works and I'm happy :)

---begin of script-------------------------------------------------------------------------
;Load Mediaportal and activate the music bar

;set screen coordinates relative to the window
Opt ("MouseCoordMode", 0)

;load mediaportal executable
run ("C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe")

;wait till the main window is loaded
WinWaitActive ("MediaPortal - Home")

;hit the music bar
MouseClick ("left", 750, 420)
---end of script--------------------------------------------------------------------------

Now it comes: the script above can be compiled to an executable, all in the same interface of your editing tool. This executable is about 180kb and will be removed from memory as soon MP is loaded.

Maybe it can help you or anybody else to create some 'autostarting'
 

NickName

MP Donator
  • Premium Supporter
  • June 23, 2006
    359
    12
    Gold Coast
    Home Country
    Hi Recosta,

    I had a similar thing working in VBScript. Great minds think alike eh? :)

    FYI. There is a MP plugin called "My Keys". It allows you to use a keystroke to go to a screen. This is handy as pressing 't' opens the Live TV screen and then pressing 'T' makes fullscreen TV open.
    For your case, pressing 'i' makes the music screen open. This has the benefit of not needing to make sure the last thing you do when quitting is exit from the Music screen. The only problem is "My Keys" is all hard coded which means certain keyboard characters do certain things. This is a nuisance if you are trying to type say, a name for new playlist.

    If you don't use "My Keys", pressing 't' gives the middle menu option the 'focus'. So simply put, you could wait for MP to open, send 't' to it and then <ENTER> to select and click the middle option (in your case "My Music").

    Note: I too use Autoit (now) for many things and it's complier is very cool. :)

    Cheers,

    Nick Name
     

    wewe

    Portal Pro
    August 3, 2005
    362
    0
    63
    Herxheim
    Home Country
    Germany Germany
    Hi all,

    we sadly announce that we stopped to maintain the Autostart Plugin. I did upload the sources to the Plugin's page.

    (Why did we do that? ... Check out and-81's MCE Replacement Plugin. It does all that our autostart plugin does + 1.000 other things)


    thanks+regards
    Jake78 & WeWe
     

    Hawkeye

    Portal Pro
    January 29, 2005
    548
    87
    Halle (Saale)
    Home Country
    Germany Germany
    Really sad news...

    I didn't know that MCE Replacement can do this too (because it doesn't sound so...). I tried it and it works (with macro). But it has (as mentioned) more functions that I don't need currently... So maybe someone will take the source code of this plugin and bring it to life again.
     

    Lone

    Portal Member
    October 24, 2006
    10
    0
    Home Country
    After (finally) upgrading to RC3 I have only just come to realise my most used plugin is compatible.

    I think the MCE Replacement Plugin is too full on for what this small plugin achieves. I to hope someone else will be able to put some time towards making this plugin work.

    I would, but its not the type of coding I specialise in :(
     

    Users who are viewing this thread

    Top Bottom