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
eventTrigger [v1.3.5 Beta]
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="mickelin" data-source="post: 736052" data-attributes="member: 25242"><p><strong>Re: eventTrigger [v1.2.0 Beta]</strong></p><p></p><p>I see, then it gets trickier... Do you really need individual light control inside MP? In that case it is probably easiest to buy a second Tellstick and have one in each computer.</p><p></p><p>On the second topic, my idea assumes that you use a remote to turn on the TV and the projector. If that is the case, EventGhost could detect those events and "know" which one you are using. Are you using a single remote (Harmony or similar?) or an MCE remote together with the original TV and Proj remotes? Try loading the Keyboard or the General HID plugins in EG and see if it detects the TV On and Proj On IR codes from the remote.</p><p></p><p></p><p>The EG code would then look something like this:</p><p></p><p></p><p>Autostart</p><p> eg.globals.TVOn = False</p><p> eg.globals.ProjOn = False</p><p></p><p>TVOn Macro</p><p> MCERemote.TV On (or whatever the event you get when you push the TV On remote)</p><p> eg.globals.TVOn = True</p><p> eg.globals.ProjOn = False</p><p></p><p>ProjOn Macro</p><p> MCERemote.Proj On (or whatever the event you get...)</p><p> eg.globals.ProjOn = True</p><p> eg.globals.TVOn = False</p><p></p><p>and then when you get MP events from the trigger plugin:</p><p></p><p>MP Light Control Macro</p><p> Main.MP.Movie.Play</p><p> If eg.globals.TVOn == True:</p><p> Tellstick.TurnOff.1 (TV lights off)</p><p> Else:</p><p> Tellstick.TurnOff.2 (Projector lights off)</p><p></p><p> </p><p>Hope you get the idea.</p><p></p><p>Similarly, you could implement the Disable function by adding a variable in Autostart, set it using some unused button on your remote and check for it in the MP event:</p><p></p><p>Autostart</p><p> eg.globals.LightControlEnabled = True</p><p></p><p>Picking up the remote key:</p><p></p><p>Enable Macro (toggles the enabled/disabled state)</p><p> MCEUnusedButtonPressed</p><p> If eg.globals.LightControlEnabled == True:</p><p> eg.globals.LightControlEnabled = False</p><p> Else:</p><p> eg.globals.LightControlEnabled = True</p><p></p><p>And in the MP event:</p><p></p><p>MP Light Control Macro</p><p> Main.MP.Movie.Play</p><p> If eg.globals.LightControlEnabled == True:</p><p> If eg.globals.TVOn == True:</p><p> Tellstick.TurnOff.1 (TV lights off)</p><p> Else:</p><p> Tellstick.TurnOff.2 (Projector lights off)</p><p></p><p>Of course this is just "pseudo code" to illustrate the ideas, but hopefully it will guide you in the right direction. For more advanced scripting, check out the EG forum at <a href="http://www.eventghost.net" target="_blank">www.eventghost.net</a> . Lots of really good and helpful people there!</p><p></p><p>Finally, I saw you using .bat files in your example. You should not need to use bat-files, better to do everything right in EG!</p><p></p><p>Good luck!</p></blockquote><p></p>
[QUOTE="mickelin, post: 736052, member: 25242"] [b]Re: eventTrigger [v1.2.0 Beta][/b] I see, then it gets trickier... Do you really need individual light control inside MP? In that case it is probably easiest to buy a second Tellstick and have one in each computer. On the second topic, my idea assumes that you use a remote to turn on the TV and the projector. If that is the case, EventGhost could detect those events and "know" which one you are using. Are you using a single remote (Harmony or similar?) or an MCE remote together with the original TV and Proj remotes? Try loading the Keyboard or the General HID plugins in EG and see if it detects the TV On and Proj On IR codes from the remote. The EG code would then look something like this: Autostart eg.globals.TVOn = False eg.globals.ProjOn = False TVOn Macro MCERemote.TV On (or whatever the event you get when you push the TV On remote) eg.globals.TVOn = True eg.globals.ProjOn = False ProjOn Macro MCERemote.Proj On (or whatever the event you get...) eg.globals.ProjOn = True eg.globals.TVOn = False and then when you get MP events from the trigger plugin: MP Light Control Macro Main.MP.Movie.Play If eg.globals.TVOn == True: Tellstick.TurnOff.1 (TV lights off) Else: Tellstick.TurnOff.2 (Projector lights off) Hope you get the idea. Similarly, you could implement the Disable function by adding a variable in Autostart, set it using some unused button on your remote and check for it in the MP event: Autostart eg.globals.LightControlEnabled = True Picking up the remote key: Enable Macro (toggles the enabled/disabled state) MCEUnusedButtonPressed If eg.globals.LightControlEnabled == True: eg.globals.LightControlEnabled = False Else: eg.globals.LightControlEnabled = True And in the MP event: MP Light Control Macro Main.MP.Movie.Play If eg.globals.LightControlEnabled == True: If eg.globals.TVOn == True: Tellstick.TurnOff.1 (TV lights off) Else: Tellstick.TurnOff.2 (Projector lights off) Of course this is just "pseudo code" to illustrate the ideas, but hopefully it will guide you in the right direction. For more advanced scripting, check out the EG forum at [url]www.eventghost.net[/url] . Lots of really good and helpful people there! Finally, I saw you using .bat files in your example. You should not need to use bat-files, better to do everything right in EG! Good luck! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
eventTrigger [v1.3.5 Beta]
Contact us
RSS
Top
Bottom