Home AMX User Forum AMX General Discussion

Experienced Global Cache Programmers ??

With some help from a forum member (Felix) I was able to get my GC-100 working without using a Module and have been very Happy with the out come. However, a question about Programming my Volume button, at present I have

BUTTON_EVENT [TP_MASTER, 2] //MASTER BEDROOM TV VOL_UP
{
PUSH:
{
SEND_STRING GC_100, "'sendir,2:1,9,38000,1,1,128,127,32,94,32,94,32,94,32,94,32,94,32,94,32,31,32,94,32,94,32,31,32,31,32,31,32,31,32,31,32,31,32,31,32,31,32,31,32,94,32,31,32,31,32,94,32,94,32,94,32,753', $0D"

}
}

the volume increases with each button push, is there a way to ramp up/down the volume by holding the button rather than having it increase/decrease by constantly pressing the button?

Thanks

Comments

  • viningvining Posts: 4,368
    I'll assume that's a volume + command so just put a HOLD[3,REPEAT]: in the button event handler for that channel. Look in the help section of NS3 for button events or look at this thread for some examples.
    http://amxforums.com/showthread.php?t=6334&highlight=hold+event
  • As say Vining , u can use the Hold Function but , u can also change the Repeat Count in your
    Global Cach? and on the Release you can stop to send IR
    BUTTON_EVENT [TP_MASTER, 2] //MASTER BEDROOM TV VOL_UP
    {
    PUSH:
    {
    SEND_STRING GC_100, "'sendir,2:1,9,38000,1,1,128,127,32,94,32,94,32,94 ,32,94,32,94,32,94,32,31,32,94,32,94,32,31,32,31,3 2,31,32,31,32,31,32,31,32,31,32,31,32,31,32,94,32, 31,32,31,32,94,32,94,32,94,32,753', $0D"
    
    }
    HOLD[3,REPEAT]:
    {
    SEND_STRING GC_100, "'sendir,2:1,9,38000,0,1,128,127,32,94,32,94,32,94 ,32,94,32,94,32,94,32,31,32,94,32,94,32,31,32,31,3 2,31,32,31,32,31,32,31,32,31,32,31,32,31,32,94,32, 31,32,31,32,94,32,94,32,94,32,753', $0D"
    
    }
    Release:
    {
    SEND_STRING GC_100, "'stopir,2:1', $0D"
    
    }
    }
    
    

    'sendir,2:1,9,38000,0, << the 0 is a Special Command for the GC IR , this send always ur IR and Wait the Stop IR command


    Regards

    John
Sign In or Register to comment.