No announcement yet.

Modify the 'ONBTNPRESS' and 'ONBTNHOLD' by plugin

  • Filter
  • Time
  • Show
Clear All
new posts

  • Modify the 'ONBTNPRESS' and 'ONBTNHOLD' by plugin

    Hello all,
    By default inton the Carwings Dynamics Lite skin and other, a a specific command is defined for the events 'ONBTNPRESS' and 'ONBTNHOLD'.
    For my las plugin RRSimon i need to define 1 different song for each button pressed !
    How can i do that please:
                Case "onbtnpress"
                    ProcessCommand = 2
                Case "onbtnhold"
                    ProcessCommand = 2
    And when i quit the game , i should like to have the old pressed buttons settings ?

    Thanks for your helps !

  • #2
    There's nothing wrong with the command as you have it there. The events will still get executed in RR and in each plugin that uses them. The key is you aren't modifying the command after processing.

    If for some reason you wanted to override the event entirely so only your plugin processes it you could do something like this:

    if MyPluginActive = true then
        Select case (lcase(CMD))
            case "onbtnpress"
                MyPluginFunction() /,whatever you want to do goes there
                CMD = ""
        End Select
    end if Senior Tech Blogger (Want a product reviewed? Contact me.)
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat