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
Development
General Development (no feature request here!)
"MappingForm" interaction with 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="Clodo" data-source="post: 36736" data-attributes="member: 13653"><p>A code question: i write a <a href="http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=9749&highlight=" target="_blank">MyScript2</a> plugin, and i'm thinking about linking "Keys And Sounds" presets to script item,</p><p>but i cannot change the ActionType enum from a plugin... </p><p></p><p>An idea:</p><p></p><p>Add an ACTION_CONSOLE value to ActionType enum.</p><p>Add a public string variable called 'sConsole' that contain additional info, like the already exists 'fAmount1'.</p><p>Modify the 'MappingForm.cs' to allow specify this string.</p><p>Add serialization support and some other little code..</p><p></p><p>This little modification can allow MyScript2 user to link a remote button or keyboard to an ACTION_CONSOLE with additional command:"PlayScript test.mps", command</p><p>that i can receive from OnAction inside IPlugin derivates.</p><p></p><p>So, plugin developers (and myself) can create a plugin that intercept command like "Play c:\mymusic\myplaylist.pls", or "Open www.team-mediaportal.com", </p><p>or "Execute c:\myprogram\myexe.exe /silent"</p><p>allow final users to create useful customization...</p><p></p><p>i can do it by myself, but i need a core-developer opinion because require a core modification, right?</p><p></p><p>this idea was born in my mind from <a href="http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=9623&highlight=" target="_blank">this</a> other thread..</p><p></p><p>....</p><p>this is my first experience into an open-source project, and i don't understand some 'code' decision; for example , </p><p>i suppose that the method "IPluginReceiver:IPlugin:WndProc" isn't in IPlugin standard interface for backward compatibility, </p><p>but why IPlugin isn't a normal class and WndProc simply a virtual function?</p><p></p><p>thanks for help! bye! Clodo</p></blockquote><p></p>
[QUOTE="Clodo, post: 36736, member: 13653"] A code question: i write a [url=http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=9749&highlight=]MyScript2[/url] plugin, and i'm thinking about linking "Keys And Sounds" presets to script item, but i cannot change the ActionType enum from a plugin... An idea: Add an ACTION_CONSOLE value to ActionType enum. Add a public string variable called 'sConsole' that contain additional info, like the already exists 'fAmount1'. Modify the 'MappingForm.cs' to allow specify this string. Add serialization support and some other little code.. This little modification can allow MyScript2 user to link a remote button or keyboard to an ACTION_CONSOLE with additional command:"PlayScript test.mps", command that i can receive from OnAction inside IPlugin derivates. So, plugin developers (and myself) can create a plugin that intercept command like "Play c:\mymusic\myplaylist.pls", or "Open www.team-mediaportal.com", or "Execute c:\myprogram\myexe.exe /silent" allow final users to create useful customization... i can do it by myself, but i need a core-developer opinion because require a core modification, right? this idea was born in my mind from [url=http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=9623&highlight=]this[/url] other thread.. .... this is my first experience into an open-source project, and i don't understand some 'code' decision; for example , i suppose that the method "IPluginReceiver:IPlugin:WndProc" isn't in IPlugin standard interface for backward compatibility, but why IPlugin isn't a normal class and WndProc simply a virtual function? thanks for help! bye! Clodo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
"MappingForm" interaction with plugin
Contact us
RSS
Top
Bottom