Page 1 of 1

Need help sending same IR code several times

Posted: Thu Jul 19, 2012 9:52 pm
by noen79
Hi!

I'm using the tIRa2 usb and I'm trying to set up some macros in EG, but the way I'm doing it is not a good way.
When I for example want to lower my TV volume 10 steps, I have made a macro that sends the same command 10 times (added 10 actions with the same code for Tira2 in the macro), but this sometimes generates a huge error in the log, and will not always work properly.
Is there a better way to make EG send the same signal through TIRA2 a certain amount of times with payloads, and how can I do this?
I use Voxcommando to generate the events, so I can then get for example the event TV.volume.up {7} in EG, so if EG then can send this code 7 times instead of me putting 7 actions in one macro.

I have searched around a bit, but can not find any good explanation on this topic.

Please help :)

Re: Need help sending same IR code several times

Posted: Sat Jul 21, 2012 10:41 pm
by kkl
It's not clear to me what you mean by a "huge error in the log". Perhaps the software or hardware needs a small delay between each IR blast.
Is there a better way to make EG send the same signal through TIRA2 a certain amount of times with payloads, and how can I do this?
There may be ways to do it more elegantly, but the end result wouldn't be any "better". One way I can think of is to use a subroutine, by way of the Jump and return command, with a counter that decrements.