| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #11 (permalink) | ||||
| Guest
Posts: n/a
| Quote:
Quote:
| ||||
|
| | #12 (permalink) | |
| Portal Member Join Date: Mar 2005 Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
| Quote:
__________________ Thanks, --kaburke | |
| | |
| | #13 (permalink) | ||
| Guest
Posts: n/a
| Quote:
| ||
|
| | #14 (permalink) | |||
| Guest
Posts: n/a
| Quote:
"The code '40320' for plugin 'USBRemoteIR.USBRemoteIR' is already used by the '' command. " still occurs if I press the same button on the remote twice. | |||
|
| | #15 (permalink) |
| Portal Member Join Date: Mar 2005 Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
| It turns out my handle() method isn't thread safe - I thought it was. I'll (at least attempt to) remedy this in v0.4. I would appreciate it, MaceX, if, when it does come out, you could give it a try to make sure I've fixed the problem.
__________________ Thanks, --kaburke |
| | |
| | #16 (permalink) | |
| Guest
Posts: n/a
| Quote:
What I did to temporarily fix the problem was to change "if (m_dmsLearnedCodeCallbackObject != null)" in the handle method to " if (m_dmsLearnedCodeCallbackObject != null && m_dmsLearnedCodeCallbackObject.m_mefEditForm.Visib le == false) " probably not the best way though. | |
|
| | #17 (permalink) |
| Portal Member Join Date: Mar 2005 Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
| Well, I was wrong. My method IS threadsafe (I thought so...). The downside is that that means I have no idea how this problem is happening. As best as I can tell, your plugin somehow bypasses the lock() {} statement in my handle() method; unfortunately I don't know how. Where can I pick up one of those dongles you have? I'm trying to simulate the behaviour of your plugin with some code, but it (obviously) isn't working, so it seems I'll need to use the real thing.
__________________ Thanks, --kaburke |
| | |
| | #18 (permalink) | |
| Guest
Posts: n/a
| Quote:
I don't see why you would need the real thing. You could probably simulate the bug using WM_KEYDOWN? The dongle came with my capture card, so obtaining it would be kinda difficult and I don't know any other remotes that would work with my plugin. Maybe the MCE remote? This is what I used to obtain data from my remote http://msdn.microsoft.com/library/de...te_control.asp | |
|
| | #19 (permalink) |
| Guest
Posts: n/a
| I just tested it using a WM_KEYDOWN message with and without unsafe code blocks and I got the same message. "The code 'xxx' for plugin 'USBRemoteIR.USBRemoteIR' is already used by the '' command. xxx being the code I think I got the exception because I had some invalid setting in the configuration file. |
|
| | #20 (permalink) |
| Portal Member Join Date: Mar 2005 Location: Alberta, Canada
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
| I tried the WM_KEYDOWN message. Unfortunately, the Mapping Edit Form needs to be in dialog mode for the problem to present itself - and if it's in dialog mode, your plugin doesn't receive any WM_KEYDOWN messages. I'm trying to modify your plugin you "listen" to my gamepad instead - hopefully I'll get it to work.
__________________ Thanks, --kaburke |
| | |
![]() |
| Bookmarks |
| Tags |
| inputdevicemapper, livedriveir, versions |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Announce your plugin work in progress here!!!!!!!! | MrMario64 | General Development (no feature request here!) | 97 | 2008-04-16 20:41 |
| HowTo easily flick between diff MP versions (inc v2,v3 tv engine) | HappyTalk | Tips and Tricks | 6 | 2007-02-06 14:58 |
| InputDeviceMapper Plugin | kaburke | Plugins | 47 | 2006-11-07 09:30 |
| LiveDriveIR Plugin | kaburke | Plugins | 5 | 2005-06-07 05:08 |
| InputDeviceMapper and LiveDriveIR Configuration Problem | kaburke | Plugins | 3 | 2005-03-09 09:07 |