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:- 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 found the cause of the problem but I am not sure on how to solve it. A search on the internet on the exception gave some hint that it could be related to EnableVisualStyles. So I commented out that call in the configuration program and the exception did not occur anymore. But removing that call makes the application lose it's XP look.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) ...
I'm not sure what is happening. I looked over the code and all seems fine. Is there some way (through logging etc.) that you can pin down exectly where the exception is first being seen by InputDeviceMapper?
Actually I started out with mapping the keys on my remote to actions, but I ran into a problem that I can not add multiple actions to a button. For example I have PageUp/PageDown buttons. These buttons should most of the time have pageup/down functionality, but when viewing pictures I want them to be zoom in/out. I tried to assign both actions to the same key but that was not possible. So that is why I decided to switch to keymapping instead of actionmapping for most keycommands.The end result... I'm not going to integrate the functionality to import the Keymap file into InputDeviceMapper, as I believe that it would be to much a departure from the intended model. However, I would be willing to create a separate helper/utility application that takes a keymap file as input and generates an InputDeviceMapper compatible UserInputMappings.xml file, if people are interested.
Mr.Mitchell said:I found the cause of the problem but I am not sure on how to solve it. A search on the internet on the exception gave some hint that it could be related to EnableVisualStyles. So I commented out that call in the configuration program and the exception did not occur anymore. But removing that call makes the application lose it's XP look.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) ...
I'm not sure what is happening. I looked over the code and all seems fine. Is there some way (through logging etc.) that you can pin down exectly where the exception is first being seen by InputDeviceMapper?
mbuzina said:By the way, thanks for the plugin, it saved me a lot of coding time (my plugin is more than short ;-).
- - I would like to specify different actions for the same Device Event depending on the current window or even control in MP. This would "save" keys on my remote.
- Additionally I would like to implement a T9 word entry on the numbers of the remote. That would allow you to perform searches only using the remote. I think best would be to have a standard word list and (for ListControls) being able to use the underlying values as a word list.
mbuzina said:- I would like to specify different actions for the same Device Event depending on the current window or even control in MP. This would "save" keys on my remote.
mbuzina said:- Additionally I would like to implement a T9 word entry on the numbers of the remote. That would allow you to perform searches only using the remote. I think best would be to have a standard word list and (for ListControls) being able to use the underlying values as a word list.
mbuzina said:Mr.Mitchell said:I found the cause of the problem but I am not sure on how to solve it. A search on the internet on the exception gave some hint that it could be related to EnableVisualStyles. So I commented out that call in the configuration program and the exception did not occur anymore. But removing that call makes the application lose it's XP look.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) ...
I'm not sure what is happening. I looked over the code and all seems fine. Is there some way (through logging etc.) that you can pin down exectly where the exception is first being seen by InputDeviceMapper?
Mr. Mitchell said:EDIT: Scratch that workaround, it breaks the learning :-(. Going to figure out how to make an application manifest.
I had a look at your plugin. I have a small suggestion. I think it would be good to also add the address of the remote to the string that is sent to the InputDeviceMapper. That way if people have more than 1 X10 remote (e.g. Medion and Marmitek) they can program both remotes seperately, which is needed since both remotes have a different layout.mbuzina said:Strange... I added an X10 Device Plugin as well (I did not know of Mr.Mitchell) and it shows the exact same behoviour...
I assume you are talking about mbuzina's plugin? If not let me know and I will respond.Mr. Mitchell said:I had a look at your plugin. I have a small suggestion. I think it would be good to also add the address of the remote to the string that is sent to the InputDeviceMapper. That way if people have more than 1 X10 remote (e.g. Medion and Marmitek) they can program both remotes seperately, which is needed since both remotes have a different layout.