- Thread starter
- #21
Can you send me the modified code?
kaburke said:Can you send me the modified code?
************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at InputDeviceMapper.InputDeviceMapperSetupForm.butAddMapping_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Mr. Mitchell said:Code:************** Exception Text ************** System.Runtime.InteropServices.SEHException: External component has thrown an exception. at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) ...
Mr. Mitchell said:- It would be nice to have a way to "import" all the keys that are used in keymap.xml in one go. Right now I added the keys manually and I forgot a few. It would be nice if I could just press "Get keys from Keymap.xml" and then the keys list would be filled automatically.
Mr. Mitchell said:- Make Space display as {SPACE} it is really hard to see if you have pressed space when adding keys to the list in the wizard.
Mr. Mitchell said:- I think it would be handy if the focus would be set to the key input field after pressing Add or Clear (in the wizard and in the Learn Command screen). I think it will make it easier to add keys.
Mr. Mitchell said:- It would be nice to be able to run the Wizard again. Especially for the learning part.
Mr. Mitchell said:- It would be nice to have an indication on the test page everytime a command is received. My remote has a repeat and when watching the command on the Test page I don't see if the repeats are received. Maybe a "light" that blinks on each received command?
Mr. Mitchell said:- When I press PageUp no key is recognised, but when I press PageDown then I get {PGUP} all other keys seem to work fine.
Mr. Mitchell said:- When I click on the Configure plugins button I don't see my deviceplugin listed. It implements the IInputDevicePlugin interface, but the header "Check the device plugins you want to enabled" suggests that all deviceplugins should be listed and not only the ones that have a configuration.
I will send you the code. It is probably something silly since I am quite new to C#/.NET programming. BTW, I noticed that the exception does not occur when I have the Test tab visible, then I see the keys appearing, but when I switch back to the Commands tab and press a key I get the exception again.kaburke said:Mr. Mitchell said:Code:************** Exception Text ************** System.Runtime.InteropServices.SEHException: External component has thrown an exception. at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) ...
It looks like something in your code, though I can't think of what. If you could tell me where to get a copy of your source, I would certainly be willing to take a look and figure out how my code is misbehaving in relation to yours (though I don't have an X10 device).
Keymap.xml is the file where the keymappings for MP are stored. You can find it in your mediaportal folder. Right now I have to enter all keys by hand, so I have to add all keys that are used by MP manually so y, b, ESC etc.. one by one. All keys that are mapped in MP are already available in the keymap.xml file so it would be easy to just import/load that list by click on a button.What type of file is keymap.xml? Is it one of the configuration files that InputDeviceMapper generates?Mr. Mitchell said:- It would be nice to have a way to "import" all the keys that are used in keymap.xml in one go. Right now I added the keys manually and I forgot a few. It would be nice if I could just press "Get keys from Keymap.xml" and then the keys list would be filled automatically.
Ok, I am feeling very stupid now. I only checked if everything showed up while learning I didn't test pause in MP and indeed it does not work.Good idea. Did your fix work (i.e., did a SPACE get sent to the application?)? {SPACE} is not listed as a supported code in the SendKeys() description. Irrespective, I will add said functionality in 0.4.2 (in a manner that works, of course).Mr. Mitchell said:- Make Space display as {SPACE} it is really hard to see if you have pressed space when adding keys to the list in the wizard.
My issue is that when I press the same key twice I can not see that there was a second command/keypress, because the text stays the same.I'm not positive I understand what you mean, but I think I do. I will put something in 0.4.2; let me know if it is what you meant.Mr. Mitchell said:- It would be nice to have an indication on the test page everytime a command is received. My remote has a repeat and when watching the command on the Test page I don't see if the repeats are received. Maybe a "light" that blinks on each received command?
k, I will see what comes out.The plugin has to implement IConfigurableInputDevicePlugin to show up in the list. I debated whether or not all plugins should show up, but decided to let some be hidden. I will think about this some more.