PDA

View Full Version : Macro or Script??



guitonoklops9
August 21st, 2007, 12:44 PM
I am working on a .gml to control ATI's Multimedia Center TV for an old TV Wonder card I have. The problem I am having is there is a loud "pop" from my speakers when changing channels. I'd like to fix this using a Girder Macro, or a script...whichever is better suited for this application. This is the order I'd like things to happen:

1) Wave Volume is muted when "CHANNEL UP" button is pressed down
2) Channel is changed up (by keyboard <UP>)
3) A small pause for the channel to change
3) Volume is unmuted when "CHANNEL UP" button is lifted up (after the pause)

I can get all these things to happen individually, by not in the specified order.

What do you think the best way to do this is? should I be using a macro, a script, or something else?

Thanks!
Luke

quixote
August 21st, 2007, 01:14 PM
Use two macros, oone triggered by the key that you will use for channel changes (the key DOWN event) and a second one that is triggered by the key UP event. The first one should have actions to mute the volume then change the channel and the second should use a simple timer of 500ms or so and then unmute the sound.

guitonoklops9
August 21st, 2007, 07:25 PM
Thanks! that worked like a charm.