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:
Code:if MyPluginActive = true then Select case (lcase(CMD)) case "onbtnpress" MyPluginFunction() /,whatever you want to do goes there CMD = "" End Select end if