Can some one tell me how RR decides to invoke the ONCOMMANDINVALID event. I'm trying to help someone who's having trouble with my mobilephone.NET plugin but I dont understand why its not working.
As far as I'm concerned the command is valid so why does RR think its not?
RR debug has the following
02.06.2009 23:47:29: Enter Exec: False, mobilephone.skin, "ONBTNPRESS||mobilephone_dial", False
02.06.2009 23:47:29: Que Exec: True, mobilephone.skin, "ONBTNPRESS||mobilephone_dial", False
02.06.2009 23:47:29: Que Exec: True, mobilephone.skin, "mobilephone_dial", False
02.06.2009 23:47:34: Executing: mobilephone_dial
02.06.2009 23:47:34: Command not executed: mobilephone_dial
02.06.2009 23:47:34: Que Exec: True, mobilephone.skin, "ONCOMMANDINVALID", False
02.06.2009 23:47:34: Executing: ONCOMMANDINVALID
thanks in advance
I really wish that this forum had a bug tracking feature!~! Then maybe when ppl post a bug, we wouldn't constantly have to ask....
What RR ver you running?
If the cmd thats trying to be executed is NOT: Std RR cmd ,a cmd matching any found in the Exectbl.ini files(rr's and skins), or a plugin cmd then thats event is fired.
Didn't think I was posting a bug , I was just asking a question.
I'm using 01/04/09 version.
So how does RR know what a valid plugin command is?
It doesn't if the PI was incorrectly coded. If you process a cmd in a plugin(PI), you have to return a value so that RR knows what happened inside the PI. Under normal circumstances, if you process a cmd completely and don't need RR to further process it, you return a 2. If you changed the passed "CMD" string parameter, then you need to return 3.
if you're getting a command not executed/oncommandinvalid response (for the mobilephone_dial command), then either the plugin is not loaded correctly (setup issue) OR the plugin is not returning a processed command response code (plugin issue). If this is an isolated issue, then it's likely to be the first case.
thanks guino. Its a really strange issue. The guy can see the plugin in the plugin manager. If he sets all the commands to lowercase some of them work (he can load and see the custom list) but one doesn't. If he sets the commands to uppercase lots of them dont work. My code allways converts the commands to lowercase before checking them.
Originally Posted by guino
For every command my plugin returns a command number , all 2 I think. The commands he's sending I've triple checked to make sure I send back a 2. and he's the only one to report this issue.
I'll get him to re-install but any other ideas? particularily why lowercase works but not upper.
RR will pass the command to the plugin as it is in the .skin file -- you should take steps to convert it to upper/lower case before comparisons to avoid a casing issue when processing a command (The example plugins use lcase/uscase to do that in the select statements). Other than that, there should be no difference for upper/lower case commands.
Originally Posted by lambosprit