PDA

View Full Version : vol up works wierd in sage tv



akel
August 27th, 2004, 03:22 PM
I have two groups PowerDVD (pdvd_40_TV.gml) and sageTV (sagetv_2.0.19.gml) (both are existing gmls from www.girder.nl). SageTV uses sendMessage plugin.

vol up /vol down is mapped to mouse wheel scroll in power dvd
vol up and vol down For sage is accomplished by sending event.

When I do vol up in sage tv - it increases volume and changes channel. (mouse wheel up is channel up in sage tv). however if I do vol up on girder (girder is foreground window) then it incrases the volume and does not change channel.

I did read the FAQ, and I think this is described in the first question in actions. But that seemed very difficult and this should have a very simple solution, since everyone must be doing thie.

(The up down key is not behaving wierdly however, in powerdvd, it is mapped to keyboard up/down and in sage it is again sendmessage, but it does not do up two times)

What am I doing wrong?
Thanks

Promixis
August 27th, 2004, 04:43 PM
Hi,

I am not 100% clear. It almost sounds like its doing what it should - even though you don't want it to.

ie Girder sends a volume and it works. But if you use the mouse wheel, you are getting a channel change from sage and a volume up from powerdvd??

Or am I missing something.

akel
August 30th, 2004, 02:45 PM
I think its doing what it should because I have not set it up properly.
Powerdvd has vol up and down as mouse wheel scroll up and down
Sage tv is using sendmessage to do volume up and down
So when I press volume up on remote, sage tv gets one signal from sendmessage about volume up and it increases the volume. At the same time the mouse wheel scrolled up signal is also sent to sage tv causing it to change channel.

I thought that once I create a group PowerDVD (which by the way I imported, not created, so I dont really know much about it) there is some way girder knows that all the actions inside that group will be applied only to PowerDVD and all the commands inside sage will apply only to sagetv. However that is not happening. Girder is executing all matching commands (even though powerdvd is not a running application at that time). May be that is how girder works. (i.e. there is no way to specify an applicable application for one whole group.). In which case I have to do something complicated like enabling/disabling a group based on the running application.

anyway, I think girder has a steeper learning curve that I expected. But I find it very powerfull and potentially useful. So I will keep trying different things and hopefully in a few days I will figure things out better.

thanks

gplasky
August 30th, 2004, 04:13 PM
It sounds like both groups are still enabled. You need to use the task switch and task create to disable the PowerDVD group when Sage is in the foreground. Right now it sounds like both groups are enabled so when you do volume up in Sage it does the volume up for Sage and also the mouse up event for PowerDVD. Look for the Focus Example in the 10 Newest Girder Groups for an example of what you need to do.

Gerry

akel
August 30th, 2004, 05:38 PM
It sounds like both groups are still enabled.
I would assume so, since I have not done anything special to disable those. Is there a way to assign a group to one application. (I dont think it is similar to targeting, since targeting allows the application to be controlled even in background. What I am talking about is I suppose just like the "focus" example you described. enable the group belonging to an application that is in focus and disable all others. I was hoping that girder has this capablity withought my doing anything special for it. (not that I am lazy, I am just dumb :))

and You need to use the task switch and task create to disable the PowerDVD group when Sage is in the foreground. Right now it sounds like both groups are enabled so when you do volume up in Sage it does the volume up for Sage and also the mouse up event for PowerDVD. Look for the Focus Example in the 10 Newest Girder Groups for an example of what you need to do.

Gerry

Thanks Gerry, I will try the focus example and see if that is what I want.