Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

AutoRepeat, TriggerEvent, program flow?

If you have a question or need help, this is the place to be.
Post Reply
Quantus
Plugin Developer
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm

AutoRepeat, TriggerEvent, program flow?

Post by Quantus »

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
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

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.
Quantus
Plugin Developer
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm

Post by Quantus »

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.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

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.
Quantus
Plugin Developer
Posts: 17
Joined: Thu Sep 21, 2006 1:57 pm

Post by Quantus »

Thank You!

That was exactly what I was looking for. EG is now doing almost everything I want.
Post Reply