More > Media Center 11 (Development Ended)
Jump to Tree Location Documentation
glynor:
Yeah. I actually tried that too, but it's just as problematic. I was assigning that Action (just as you described) to the "Music" button on my remote, and then assigning a similar action to my "Video" and "Photos" buttons. The problem is if you hit Audio (which selects Audio and opens the tree) and then Video, and then Audio again (to go back), it jumps you down to the next "tier" of the Audio tree (in my case an [Album (grouped)] view scheme that I only rarely use).
The SendMessage method actually worked more reliably than that. It would only get confused if I toggled back and forth quite a few times (10-15 in quick succession). Once it did "break" though, it would actually start expanding the wrong tree item (seemingly at random) so it was quite unacceptable once it started happening. I couldn't find any way to "set it right" other than to close and re-start Girder.
I decided it's easier just to manually hit -> to expand the tree myself when I want to open it, and left my Action with "Switch to Audio" alone (along with the conditional launch MC or bring it to foreground). It is working well though.
I also thought I'd mention that I had a lot of trouble getting SendMessage to work reliably with Theater View (I was assigning those same buttons to do the similar function in TheaterView if it was open). It works most of the time, but sometimes would get "stuck". I suspect it happens if TheaterView somehow is no longer "on top" or something (or has to do with the Target I was selecting, but I tried a bunch of combinations). Either way, I've decided it's just easier to use MC11.exe (and Keyboard spoofing) to control Theater View at this point.
I'd be all done with the GML right now but I decided to break my HTPC (not really on purpose) yesterday instead. I plan to work on it more tonight, and I should have something post-worthy by this evening.
Doof:
I'm using SendMessage for everything except for the keyboard navigation stuff. Mainly because I can't find a keycode for the arrow keys. It seems to work fine. I'm only using the Audio Mode plus Right Arrow key for my system here at work, where I'm not running Theater View.
I have found one weird little problem with SendMessage, though. Trying to use SendMessage to kick off the Import dialog and then hit the enter key doesn't work right. It fires up the Import dialog, but then Girder stops processing commands until I manually close the Import dialog. I have a feeling it has something to do with the loword/hiword parameters for it (I have no idea what that even means). I don't get the same problem when using MC11.exe, though, even though I'm passing the same 0 parameter. So for that one command, I'm still using MC11.exe
glynor:
I posted my Girder 4 GML files over in the Third Party forum.
glynor:
FWIW: Using the Sendmessage with the Import tool works fine for me with Girder4 (allows Enter to start the search). That was actually one of the last commands I switched over from MC11.exe to Sendmessage.
DoubtingThomas:
--- Quote from: glynor on April 14, 2006, 04:20:20 pm ---I thought I'd post that in my quest to build a new Girder4 GML file, I figured out some of the settings for the MCC_SHOW_TREE_ROOT MC Windows Message Command.
--- Code: ---MC11.exe /MCC 22003,[int nTreeRootIndex]
[int nTreeRootIndex]:
1 = Playing Now
2 = Audio
3 = Playlists
4 = Drives and Devices
5 = My Computer
6 = TV Tuner
7 = Web Media
8 = Images
9 = Video
10 = Podcasts
11 = Services & Plugins
--- End code ---
--- End quote ---
Actually I am looking for a way to get focus to the track grid to the right.
Navigation
[0] Message Index
[*] Previous page
Go to full version