Announcement

Collapse
No announcement yet.

Execute command from my plugin only into a screen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execute command from my plugin only into a screen

    Hello,

    I'm developping a plugin...

    My plugin have a timer which every 6 seconds calls a method to
    update a custom list

    I would execute the function only if the user is viewing the
    screen where the custom list is located.

    How I could obtain this?

    Thanks

  • #2
    The first RR SDK example made shows you how to retrieve the current screen in RR -- basically you just read the "RRSCREEN" label code (i.e. RRSDK.GetInfo("RRSCREEN"). You can use this info to check if you're really on the desired screen before doing anything else.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      ok, I have found this workround...I thought that there was a way to enable or disable the plugin

      I thought at sometinghs like: LOAD;MySkin.skin||ENABLE;MyPlugin

      I wouldn't hard code the name of the skin if it is possible...


      thanks

      Comment


      • #4
        Hard coding the name of the skin tends to keep skins cleaner in general, but if you don't want to do that, you can certainly make a command in your plugin to do what you want -- there's no limitation in that regards when making extension plugins.
        Ride Runner RR's Myspace

        "Being happy is not about having what you want, it's about wanting what you have."
        "The best things in life are always free - but that doesn't mean money can't buy you good things."

        Comment

        Working...
        X