PDA

View Full Version : Zoom player navigators....



yuit
January 23rd, 2003, 12:13 PM
Hey,

I'm trying to set up my remote to use the zoom player navigators (specifically the file navigator). The problem I'm running into is that I use the direction keys on my remote for different purposes. Normally they function as rewind, ff, stop, pause and play, but when I activate the file navigator in zoom player I'd like them to switch to control the menu. This sort of arrangement works great in plugins like OSDMenu, where you can execute something on menu load and on menu unload, but doens't seem to work well in zoom. The problem seems to occur because there doesn't seem to be a way in girder to determine when the menu is not activated anymore. For example, when the menu is activated I can switch the buttons, but it is unclear when the menu is deactivated, because the menu can be deactivated in many way, for example pressing "enter" on a file will deactivate the menu, but pressing "enter" on a directory will not...

anybody have any suggestions for getting this to work, other than what seems to me to be the inelegant way of having one button to toggle the navigator and one to toggle the navigation keys ?

SouthyPar
January 24th, 2003, 02:39 AM
I couldn't figure out this exact same problem for a very long time, until some nice German guy tipped me off in the ZoomPlayer forums.

The solution is actually quite simple. You can use the "Window Exists" command in Girder to determine wether or not a navigator interface is currently active. Each Navigator is defined in ZoomPlayer as it's own "Child Class", such as TFileNavForm for the File Navigator, and so forth.

I've attached an example .GML that uses this technique. It checks wether ZoomPlayer is in a Navigator On All Events, and puts the result in reg3 (0 for no, 1 for yes).

yuit
January 24th, 2003, 08:25 AM
Hey,

thanks for the info. I never even thought that zoom creates a new window for the navigators....

Well now I'm one big step closer to remote control nirvana :)

kNiL
January 30th, 2003, 02:03 PM
:o

I´ve had a haedache with this. And solution is THAT simple!
Thanks to SouthyPar and my german fellow!!!

kNiL

filewalker
February 4th, 2003, 09:20 AM
Hi,

I'm also interested in controlling the ZP navigation.

@SouthyPar

I can' t see your attachement (example.GML) anymore! :(
Please, can you (or everyone else, of course, too) attach such an example .GML once more. :oops: :D

ThanX in advance!

Cu filewalker

kNiL
February 4th, 2003, 10:43 AM
ZP brings its own GML! Just run ZP and look at the tab "Keys" in the options. Here you can export the Keys into a GML-file. All commands are send as SendMessage which is much better than letting Girder send keystrokes to ZP.

If you want to close a specific navigator in ZP (File, Playlist, etc.), you can do that by the Girder-Command "Close Window" and selecting as target the navigator window. Yes! Navigators in ZP are simple transparent windows!!!

kNiL

filewalker
February 5th, 2003, 08:02 AM
If you want to close a specific navigator in ZP (File, Playlist, etc.), you can do that by the Girder-Command "Close Window" and selecting as target the navigator window. Yes! Navigators in ZP are simple transparent windows!!! That is what I wanted to know! It's a ingenious idea with this transparent winwow solution.

ThanX kNiL ! :D

BTW: Zoomplayer rocks! 8)

Cu filewalker