r/macrodroid • • Jan 13 '25

Help please

Post image

I'm trying to make a heartbeat effect but it just spams it. Any help?

0 Upvotes

3 comments sorted by

1

u/Ameritexican Jan 13 '25

Are you trying to have your mobile alternate betwixt being serene & vibrating whenever your screen is off?

Despite the high battery usage, especially with how short the intervals are, not having a concise "end if 'X' successfully fulfilled' event such as repeat only 'X' number of times or only perform the following actions 'X' number of times etc., etc., will likely have it repeat continuously. Which is what I imagine you mean by "Spamming" as it will either continue to cycle as there is no real 'end if' command save for the actions only being repeated twice. Having the screen off be the starting trigger, it may continuously repeat the macro steps continually until the screen is turned on again as not having the screen off seems to be the only way to stop the actions from repeating.

Apropos, the 5 second interval Trigger is likely to add another instance to what appears to be a continuous loop thus creating another continuous loop. Any deviation of time from start may produce a continuous vibration due to the endless number of instances that are being created. Having the 'repeat every 5 seconds' Trigger would probably be better placed in the Actions section if not used as a Constraint for the currently placed Trigger. Either change should restrain the macro from repeating via multiple instances due to a time delay. It is important to note that telling a set of actions to repeat every 'X' amount of time needs to extend beyond the time it take all aspects of the Actions triggered to complete. Otherwise you are telling it to start a new set prior to when the list of Actions will naturally complete. Doing so will either lock, & therefore cause the macro to fail or will create a continuously repeating set of actions with a slight offset. Something to keep in mind when making your adjustments.

1

u/coolsam254 Jan 13 '25

Probably won't work but try putting the wait 2 seconds at the beginning.

1

u/jer_re_code Jan 14 '25

heartbeat is hard but it could be possible if external functions are called as subprocesses

because i guess perfectly the second beat would start while the first one has just faded out half way