'Start Button' & My Plugins (1 Viewer)

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
any thoughts on how your "old" code has been reused for MCE remotes?

It looks very good, there is a lot less code in MCE2005Remote.cs which is always a good thing.

Still trying to find the last revision of the mptray code, that has a better implementation for the SetupDiXXX calls - very frustrating when you lose code.

No new ideas from me, you got anything planned?
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
Smirnuff said:
No new ideas from me, you got anything planned?
Not really, no. Maybe bringing back MCE functions for MCE clones that don't work with the changed implementation anymore. So bringing back a RawHID reader again. But that's got nothing to do with the real MCE code as it is used now.
Would be cool if you could offer an updated SetupDiXXX code, of course. I had to reverse some of your code to get the current implementation. So the stuff in SVN is based on the latest DLL you had. (In fact it's the "lost" code.) Or is that already the updated stuff you talked about? Have a short look into SVN, if you like. It's definately not the stuff anymore that Frodo copied quite long time ago from your sources to handle the start button.
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
Or is that already the updated stuff you talked about?

Nope unfortunately it is not the latest, did start a thread requesting it a long time ago but nobody the source for the last release and indeed running the last release through reflector didn't do any good either!?!?!

I changed the code so that the SetupDiXXX calls were in a using statement so that the handles got freed behind the scenes. No great benefit other than the code was easier to read.

Oh and it was using the safe handles were appropriate to get rid of the compiler warnings. If my remote would work under x64 I'd do it again but thats a no go so far.

Have a short look into SVN, if you like

I do from time to time. Was pleased to see SQL Server/Express implementations of the database classes and thought the binary XML was a pretty cool step forward too.
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
If you have the very latest binaries at hand, send them to me, please. I think you still got my address or did you trash it in anger? :mrgreen:
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
If you have the very latest binaries at hand, send them to me, please

I'm using the same binary as others. I do have good working mptray source if that is what you are after?

And nah should still have your e-mail address.
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
Smirnuff said:
Nope unfortunately it is not the latest, did start a thread requesting it a long time ago but nobody the source for the last release and indeed running the last release through reflector didn't do any good either!?!?!

I changed the code so that the SetupDiXXX calls were in a using statement so that the handles got freed behind the scenes. No great benefit other than the code was easier to read.

Oh and it was using the safe handles were appropriate to get rid of the compiler warnings.
I was talking about that part and thought that the latest binaries you have got those changes.

Anyway, in case you have sources and/or binaries that are newer than the code I'm using for MCE2005Remote (MediaPortal.Hardware), I'd appreciate it very much if you could send them to me. You did some nice work for mptray and we benefit from it in the main app now. So it would be cool to have the very latest stuff you did. Even the binaries help me a lot. At least they did for the lost mphook sources. :wink:
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
I was talking about that part and thought that the latest binaries you have got those changes

None of the binaries that I have reverse to the code I am seeking either :(.

I'll shoe horn the remote into working under x64 before too long and will make the changes again and then fire them off to you.
 

Smirnuff

Portal Pro
December 7, 2004
630
3
United Kingdom
Since I'm on a tiny bit of a roll here... mPod any danger of you looking into the focus problem that MP has had for a long time? Think back to the posts from Taipan etc regarding starting from the green button but not always gaining focus.

Prior to my leaving the project I did try hunting this issue down but failed so got a bit dirty and added code that announced when MP was fully initialised via a named event, then mptray would force focus, but even that doesn't work all of the time (~70% success). The issue is definately within MP, always suspected it was something to do with the splash screen or the hiding of the task bar but never got to the bottom of it.

Once again its a laziness thing, 30% of the time I have to reach for the keyboard and Alt-Tab MP into focus. I'm 32 now and my arms are getting weary.

And no no no submit a patch hints, if you do not fix this I expect a full refund!!!
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
It's already in SVN since some time. See config, section "General", "Allow blabla to gain focus blabla". (Or use TweakUI and turn that freaking XP focus feature off, unselect "Prevent applications from stealing focus" - This does the same, but without having to restart XP.)

Also you can tie the "get focus" property to each remote button in the button mapper, not only the start button. MPTray doesn't have to do that "dirty work" anymore.
 

Users who are viewing this thread

Top Bottom