M
MaceX
Guest
kaburke said:Sorry I didn't reply sooner - I was busy this weekend and didn't get a chance to watch the posts.
MaceX said:When I go to learn a command and press a button on my remote and then press a different button on the remote an exception is raised.
When are you pushing the buttons? Are you pushing them both while the "Learn Command" window is showing?
I don't know why this could be happening (though it would help to have more information about the details, such as answers the the above questions). Unfortunely I don't have a USB IR dongle to try it out, but I will look at your source code and see if I can figure out how my code is misbehaving in relation to it.
When the Learn Command window is open I will press a button on my remote. Now the Edit Mapping window appears. If I press a different button on my remote, the Code: field on the Edit Mapping window changes to the new code that was pressed on my remote, and an exception occurs. The InputDeviceMapper is still listening for commands when the Edit Mapping window is open. I don't think it should do that.
kaburke said:MaceX said:Also if I learn a command and press the same button twice I get this message.
'40320' is the code for the button I pressed and it's not assigned to any command.
I'm not sure what you mean by "press the same button twice." Are you pushing the button twice while the "Learn Command" window is showing, or after it closes?
Just like above I press the button on the remote when the Learn Command window is visible and then press that same button when the Edit Mapping window is shown.