AutoRepeat, TriggerEvent, program flow?

If you have a question or need help, this is the place to be.

AutoRepeat, TriggerEvent, program flow?

Postby Quantus » Tue Sep 26, 2006 11:49 pm

Hi,

First, this is what I want to do: Press the volume-up button on my remote and have the volume on my receiver (controlled by RS232) simultaneously increase.

I have tried using the AutoRepeat action. With the volume-up button held on the remote, the macro generates a continuous stream of TriggerEvent "VolumeUp" messages, but they don't get passed to the receiver control macros until after the volume-up button is released, at which time the volume on the receiver jumps up according to the duration of the remote button press.

Is this the way it's supposed to work, or am I missing something? If this is the way it's supposed to work, is there any way for me to get the "input macro" (USB-UIRT conversion from codes to events) to operate simultaneously with the "output macro" (event --> RS232 control)?

Thanks.

Mark
Quantus
Plugin Developer
 
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm

Postby Bitmonster » Wed Sep 27, 2006 12:52 am

Have you tried to route the processing to another macro with a TriggerEvent action? This will not work, because EG is always only processing one event simultaneous as long as the processing hasn't "freed" the event. And since EG is monitoring this event for the AutoRepeat action (AutoRepeat is actually some kind of macro-modifier), it won't start to process any other event till this one is done.

But you can use any actions you want inside this AutoRepeat-Macro to continuously do something, like raising the volume.

So I don't see any problem with your simultaneous-volume-through-RS232-problem. I do it all the time, with ways like RF-remote-to-IR-out or even in the way of receiving the remote on PC1, sending it to PC2 with TCP/IP and let the there through RS232 attached IR-transmitter control the AMP.

There is only one exception:
If your target works more in a way, that you first have to initiate something and later stop this with another command, then you will have to use some short script to accomplish this. What I mean is something like saying the amplifier to increase the volume with a single command and the AMP would not stop increasing the volume till you send another command. But such situations are very rare and I have never heard of any amplifier working this way.
User avatar
Bitmonster
Site Admin
 
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Postby Quantus » Wed Sep 27, 2006 8:29 pm

Thanks, I understand now.

I was using a two step process.
Step 1 - macro "A" to convery USB-UIRT event "FC18D23C590C" to a meaningful event "VolumeUp"
Step 2 - macro "B" to take action "Device.RaiseVolume" based on the event "VolumeUp"

I now understand that this process will work for any action that I don't want to autorepeat. However, I must use the USB-UIRT event directly in the autorepeating macro.
Quantus
Plugin Developer
 
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm

Postby Bitmonster » Wed Sep 27, 2006 8:35 pm

Yes.

BTW: You can map these cryptic events to more readable events at another level, by a special script directly behind the USB-UIRT plug-in.
http://www.eventghost.org/forum/viewtopic.php?t=34

EG should get a GUI-based general event-remapping for every plug-in at sometime. It is at least on my to-do-list.
User avatar
Bitmonster
Site Admin
 
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Postby Quantus » Thu Sep 28, 2006 4:32 pm

Thank You!

That was exactly what I was looking for. EG is now doing almost everything I want.
Quantus
Plugin Developer
 
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm


Return to General Support

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 9 guests