does anyone have any idea how to make a macro if the desired functionality is not included? I am trying to set up the following lines

Patmobile

New member
Hello,

does anyone have any idea how to make a macro if the desired functionality is not included? I am trying to set up the following lines



A - If App Forground APP "X"

A - Set boolean variable (launch APP"X") to true

A - Else

A - Set boolean variable (launch APP"X") to false

A - Endif

A - Launch APP "IN LOOP"

A - Wait 2 seconds

A - If Variable (launch APP "X") is true

A - Launch "APP X"

A - Else

A - Launch APP "Y"

A - Endif


Or if nobody knows, were can I find the tuto to learn how to do this ?

Kind regards.
 

Dm114

Member
Hello,

does anyone have any idea how to make a macro if the desired functionality is not included? I am trying to set up the following lines



A - If App Forground APP "X"

A - Set boolean variable (launch APP"X") to true

A - Else

A - Set boolean variable (launch APP"X") to false

A - Endif

A - Launch APP "IN LOOP"

A - Wait 2 seconds

A - If Variable (launch APP "X") is true

A - Launch "APP X"

A - Else

A - Launch APP "Y"

A - Endif


Or if nobody knows, were can I find the tuto to learn how to do this ?

Kind regards.


What are you trying to achieve? Be aware that every time an app comes from background to foreground it is as if it was launched for the first time (Google restriction, not MD)...
 

Patmobile

New member
thank you. I don't know that s why i have asked for some help to construct this macro that was propose by tghe developper of the program.

If it ca'nt work I have to abandon ?
 

thecid.ia2002

New member
An idea you can know when your app was opened, and put it in a variable, if that app goes to the background, with the menu button, or when it is exited with the back button
 
Do you want two separate macros, or one? It looks like you're describing two different functions: One to launch either appX or appY, and another to see if appX is in the foreground. It's unclear what "launch app IN LOOP" means. We could use some better information.
 

Patmobile

New member
Hello thanks for your reply. To try to make it meaby clearly for explaned. I have an android screen in my car. I use MAPS SPEED LIMITS what i find usefull to make a survey of the speed limits when i drive. This app is not stable and have to be relaunched it every a ... certain time. And on the go, i listen or the RADIO or SPOTIFY via the net. I ve made a Macro that relaunch the Radio app after the Speed app is relaunched, to have the app I listen to displayed on the screen. But for example with the macro i ve made, if I listen to spotify, the macro makes the Radio coming up. I search a method that I didn't find to let MAPS SPEED LIMITS run on the loop, but if I listen to SPOTIFY or what else SPOTIFY is not stopped the RADIO, and if i listen to the Radio, the Radio is not stopped by Spotify. the macro erases spotify because every ... minutes it restarts the RADIO. I would like to put a constraint in such a way that if spotify turns on the radio does not start and vice versa.
 
Hello thanks for your reply. To try to make it meaby clearly for explaned. I have an android screen in my car. I use MAPS SPEED LIMITS what i find usefull to make a survey of the speed limits when i drive. This app is not stable and have to be relaunched it every a ... certain time. And on the go, i listen or the RADIO or SPOTIFY via the net. I ve made a Macro that relaunch the Radio app after the Speed app is relaunched, to have the app I listen to displayed on the screen. But for example with the macro i ve made, if I listen to spotify, the macro makes the Radio coming up. I search a method that I didn't find to let MAPS SPEED LIMITS run on the loop, but if I listen to SPOTIFY or what else SPOTIFY is not stopped the RADIO, and if i listen to the Radio, the Radio is not stopped by Spotify. the macro erases spotify because every ... minutes it restarts the RADIO. I would like to put a constraint in such a way that if spotify turns on the radio does not start and vice versa.
Ok so let me see if this is what you want:
You want to launch EITHER the Radio or Spotify.
If you launch Spotify, you want it to play Spotify for a few minutes, then start MAPS, then go back to Spotify for a few minutes, and repeat.
If you launch the Radio, you want it to play Radio for a few minutes, then start MAPS, then go back to Radio for a few minutes, and repeat.
Is that right?
 

Patmobile

New member
Ok so let me see if this is what you want:
You want to launch EITHER the Radio or Spotify.
If you launch Spotify, you want it to play Spotify for a few minutes, then start MAPS, then go back to Spotify for a few minutes, and repeat.
If you launch the Radio, you want it to play Radio for a few minutes, then start MAPS, then go back to Radio for a few minutes, and repeat.
Is that right?
Yes. thank You. Another way to explane is. If the RADIO is on, then SPOTIFY may not run automaticly if I didn’t launch SPOTIFY manually and « vice versa ». And in background the app SPEED limit is automacly relaunched every ... minutes.. Kind regards
 
I think the easiest way is for you to just make two macros, one called Spotify and one called Radio. Have the trigger be an Empty Trigger and set the first action Launch Maps. Then have the 2nd action Launch [Spotify or Radio], and then wait X minutes. At the end of the wait, have it launch the same macro. Be sure to include an easy way to stop it like a notification or floating button to stop the macro.
 

Dm114

Member
Hello thanks for your reply. To try to make it meaby clearly for explaned. I have an android screen in my car. I use MAPS SPEED LIMITS what i find usefull to make a survey of the speed limits when i drive. This app is not stable and have to be relaunched it every a ... certain time. And on the go, i listen or the RADIO or SPOTIFY via the net. I ve made a Macro that relaunch the Radio app after the Speed app is relaunched, to have the app I listen to displayed on the screen. But for example with the macro i ve made, if I listen to spotify, the macro makes the Radio coming up. I search a method that I didn't find to let MAPS SPEED LIMITS run on the loop, but if I listen to SPOTIFY or what else SPOTIFY is not stopped the RADIO, and if i listen to the Radio, the Radio is not stopped by Spotify. the macro erases spotify because every ... minutes it restarts the RADIO. I would like to put a constraint in such a way that if spotify turns on the radio does not start and vice versa.
Below is an example of what you could do to re-launch your MAPS app automatically. This macro is launched by any appropriate kind of button, either to launch or to stop your app (or at least to reset internal logical flag).

I haven't understood why RADIO or SPOTIFY stop playing when (re-)launching your MAPS app. I guess that with the example below it shouldn't impact on RADIO/SPOTIFY playing. If so, let me know and we'll see how to launch them again...
 

Attachments

  • Tst.png
    Tst.png
    56.7 KB · Views: 7

Patmobile

New member
I think the easiest way is for you to just make two macros, one called Spotify and one called Radio. Have the trigger be an Empty Trigger and set the first action Launch Maps. Then have the 2nd action Launch [Spotify or Radio], and then wait X minutes. At the end of the wait, have it launch the same macro. Be sure to include an easy way to stop it like a notification or floating button to stop the macro.
thank you to i will try this too. I f not possible I will let so. I juste need to have this one automaticly. Because I am on the go driving a car. Be busy with button or what else ... is not a good option ;-) anyway i thank you for your help
 

Patmobile

New member
I think the easiest way is for you to just make two macros, one called Spotify and one called Radio. Have the trigger be an Empty Trigger and set the first action Launch Maps. Then have the 2nd action Launch [Spotify or Radio], and then wait X minutes. At the end of the wait, have it launch the same macro. Be sure to include an easy way to stop it like a notification or floating button to stop the macro.
I realize that this solution is closer to my level to create it however I do not see how to create a floating button. I found the "if" exception. And I would have specified "if" SPOTIFY works VRADIO must not engage but I cannot find ... I am a little lost ...
 
"Floating Button" is a trigger you can select. You can also make it transparent or select the on-screen position.

Goolag changed things so that we can't use a program to detect which programs are running in the background, so you have to just make your macros run each program separately.
 
Top