home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Autostart TV plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="recosta" data-source="post: 131497" data-attributes="member: 26116"><p>Hi there,</p><p>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 ;-)</p><p>So, I did some scripting with AutoIt (<a href="http://www.autoitscript.com)" target="_blank">http://www.autoitscript.com)</a>. This is a rather simple and also FREE scripting tool.</p><p></p><p>Here is some information of my script:</p><p>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).</p><p>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).</p><p></p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>---begin of script-------------------------------------------------------------------------</p><p>;Load Mediaportal and activate the music bar</p><p></p><p>;set screen coordinates relative to the window</p><p>Opt ("MouseCoordMode", 0)</p><p></p><p>;load mediaportal executable</p><p>run ("C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe")</p><p></p><p>;wait till the main window is loaded</p><p>WinWaitActive ("MediaPortal - Home")</p><p></p><p>;hit the music bar</p><p>MouseClick ("left", 750, 420)</p><p>---end of script--------------------------------------------------------------------------</p><p></p><p>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.</p><p></p><p>Maybe it can help you or anybody else to create some 'autostarting'</p></blockquote><p></p>
[QUOTE="recosta, post: 131497, member: 26116"] 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 ([url]http://www.autoitscript.com)[/url]. 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' [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Autostart TV plugin
Contact us
RSS
Top
Bottom