Results 1 to 2 of 2

Thread: Modify the 'ONBTNPRESS' and 'ONBTNHOLD' by plugin

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Bordeaux, France

    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. #2
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Woodbridge, VA
    Blog Entries
    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

Similar Threads

  1. "ONBTNPRESS" Click
    By Chuck in forum Road Runner
    Replies: 4
    Last Post: 12-11-2008, 05:01 PM
  2. Can you modify an LCD?
    By ZsX5o1 in forum Fabrication
    Replies: 16
    Last Post: 08-08-2008, 07:06 PM
  3. Help me to modify my PC
    By mhyn in forum General Hardware Discussion
    Replies: 5
    Last Post: 07-31-2007, 11:27 PM
  4. Can anyone modify the PIC on the M2?
    By kamikaze2112 in forum Power Supplies
    Replies: 18
    Last Post: 12-20-2006, 07:56 PM
  5. do i need to modify the PSU?
    By dannn in forum Power Supplies
    Replies: 4
    Last Post: 07-11-2004, 06:09 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts