Ejecutar macro durante un tiempo

stormtrooper_77

New member
Hola, llevo poco tiempo con el programa pero ya me hecho unas macros. Pero hay una cosa que no me sale. Quiero configurar una macro que ejecute otra durante un periodo de tiempo que yo le indique. He probado varias cosas pero no me sale. No se cómo crear una cuenta atrás y aplicarla a la macro.
Si alguien puede ayudarme se lo agradecería.
Un saludo.
 

Dm114

Well-known member
Hola, llevo poco tiempo con el programa pero ya me hecho unas macros. Pero hay una cosa que no me sale. Quiero configurar una macro que ejecute otra durante un periodo de tiempo que yo le indique. He probado varias cosas pero no me sale. No se cómo crear una cuenta atrás y aplicarla a la macro.
Si alguien puede ayudarme se lo agradecería.
Un saludo.
Podrías utilizar una variable Global (para compartir información entre varias macros).

¿Realmente es necesario utilizar varias macros en lugar de una sola?

Para ayudarte, podrías adjuntar una imagen de las macros en cuestión.
 

stormtrooper_77

New member
Podrías utilizar una variable Global (para compartir información entre varias macros).

¿Realmente es necesario utilizar varias macros en lugar de una sola?

Para ayudarte, podrías adjuntar una imagen de las macros en cuestión.
Uff, se me escapa de momento eso... Las macros son perfiles del teléfono es decir, casa, noche, exteriores, reunión, etc. Lo que me gustaría es crear una macro para ejecutar uno de estos perfiles durante un tiempo específico.
 

Attachments

  • Normal.png
    Normal.png
    337.5 KB · Views: 5

Dm114

Well-known member
Uff, se me escapa de momento eso... Las macros son perfiles del teléfono es decir, casa, noche, exteriores, reunión, etc. Lo que me gustaría es crear una macro para ejecutar uno de estos perfiles durante un tiempo específico.
Sorry but even though your are on a Spanish thread and as no Spanish speaking user answered yet I'll try to help you in English: unfortunately I'm not as fluent in Spanish as I was in the past... ☹️

According to your macro, the triggers you use seem to be perfect. But I must admit I don't really understand the usefulness of most of the Actions as I suppose they should apply according the firing trigger. So, why don't you write something like:

A: IF Trigger #1 fired THEN
A: Set volume, set silent mode, set MD mode, etc.
A: ELSE IF Trigger #2 fired THEN
A: Set volume, set silent mode, set MD mode, etc.
A: ...and so on...
A: END IF
 

stormtrooper_77

New member
Sorry but even though your are on a Spanish thread and as no Spanish speaking user answered yet I'll try to help you in English: unfortunately I'm not as fluent in Spanish as I was in the past... ☹️

According to your macro, the triggers you use seem to be perfect. But I must admit I don't really understand the usefulness of most of the Actions as I suppose they should apply according the firing trigger. So, why don't you write something like:

A: IF Trigger #1 fired THEN
A: Set volume, set silent mode, set MD mode, etc.
A: ELSE IF Trigger #2 fired THEN
A: Set volume, set silent mode, set MD mode, etc.
A: ...and so on...
A: END IF
Hi, thx for your answer. I'll try your solution. But what I would like to do is make a macro that execute one of my macros for a certain time and I don't know how to do it.
 

Dm114

Well-known member
Hi, thx for your answer. I'll try your solution. But what I would like to do is make a macro that execute one of my macros for a certain time and I don't know how to do it.
Use Macro Run action > Select the macro to run OR enter its name (from a string variable, for instance).
 

Dm114

Well-known member
I know, but how can set a countdown of 10 minutes, for example?
What is the countdown for? Do you mean you want your macros run during 10 minutes? If so you just have to create a loop but I'm not sure it is what you are looking for...

Could you give me a precise example to better understand your need?
 

stormtrooper_77

New member
What is the countdown for? Do you mean you want your macros run during 10 minutes? If so you just have to create a loop but I'm not sure it is what you are looking for...

Could you give me a precise example to better understand your need?
Yes, I'd like to run a macro for a certain amount of time, 10 minutes, 2 hours and when it finishes, return to the previous macro
 

Dm114

Well-known member
Yes, I'd like to run a macro for a certain amount of time, 10 minutes, 2 hours and when it finishes, return to the previous macro
A macro runs as long as the requested actions have not finished. It generally lasts from few milliseconds to a couple of seconds Unless ther is a loop to repeat several actions.

Once the called macro has finished, the calling macro will resume at this point (when box checked).

When you speak about 10 minutes or 2 hours, I'm wondering whether you wouldn't mean: "I want the called macro to be active during this period of time". Active i.e ready to run when trigger fires. Beyond this period of time, you probably don't want this macro to run.

Is it what you are looking for? If so you could Enable the macro when it is time to (for it to run as soon as a trigger fires) and Disable it after 10 minutes or 2 hours.
 

Dm114

Well-known member
Yes, that is. I want activate a profile macro for 20 minutes and then restore the previous one.
Are you sure the "profile" restoration has to occur after an amount of time and not after a precise hour, as described in your triggers?

If so you'll have to use a stopwatch. Do you know how to?
 
Top