Macro creation help?

mryusufcan

New member
Hello, let me briefly talk about a macro that I want to make. please help.

Every day at 15:00 he has to ask me a question with a yes or no option.

If I say yes, it will send me a notification if I receive a message from person x.

If I say no he will cancel and not do anything until tomorrow.
 

Dm114

Well-known member
Hello, let me briefly talk about a macro that I want to make. please help.

Every day at 15:00 he has to ask me a question with a yes or no option.

If I say yes, it will send me a notification if I receive a message from person x.

If I say no he will cancel and not do anything until tomorrow.
Trigger: Every day at 15:00
Action: If Confirmed then
Action: Do whatever you have to do
Action: Endif
 

Dm114

Well-known member
Here is what I was suggesting: it's very simple.
20240311_135929.jpg
Why have you added other triggers? You don't use them (don't do anything when they fire) so they are useless.

If you just need to check whether you received a SMS, a call or a WhatsApp notification from some people, set a boolean variable to True when any of these 3 triggers fire.

So you macro would become:

A: If Time trigger fired AND MyBooleanVar=True
A: (the macro lines attached)
A: Else
A: MyBooleanVar=True
A: Endif
 

mryusufcan

New member
İşte önerdiğim şey: çok basit.
View attachment 8900
Neden başka tetikleyiciler eklediniz? Onları kullanmazsınız (ateş ettiklerinde hiçbir şey yapmayın), bu yüzden işe yaramazlar.

Bazı kişilerden SMS, çağrı veya WhatsApp bildirimi alıp almadığınızı kontrol etmeniz gerekiyorsa, bu 3 tetikleyiciden herhangi biri etkinleştiğinde boolean değişkenini True olarak ayarlayın.

Böylece makronuz şöyle olur:

A: Zaman tetikleyicisi tetiklendiyse VE MyBooleanVar=True
C: (makro satırlar ekte)
C: Başka
C: MyBooleanVar=Doğru
C: Endif
I made two Macros. The first is setting the variables. As you said. Secondly, it works if the variable is true. All I wanted was to create it within a Macro. Thanks again
 

Dm114

Well-known member
I made two Macros. The first is setting the variables. As you said. Secondly, it works if the variable is true. All I wanted was to create it within a Macro. Thanks again
I'm sorry but it seems we don't understand each other: the last suggestion I gave you, was to slightly modify your original macro to integrate and manage the other 3 triggers.
 

mryusufcan

New member
I'm sorry but it seems we don't understand each other: the last suggestion I gave you, was to slightly modify your original macro
I needed sms, call and multiple word notification triggers. I have them all set up now with no problem using if the trigger works.

There is a problem I have in other macros. when I select "containing" in the notification trigger and type more than one word, there is no action. It only works if I type a single word.

How should I separate the words? What if it consists of two words?
example: life coach, car

If I want to make local variables, in which way can I write them. I searched and could not find it.

I am sharing the macro image that works now.
 

Attachments

  • Gece_Vardiyası_.png
    Gece_Vardiyası_.png
    373.5 KB · Views: 9

Dm114

Well-known member
I needed sms, call and multiple word notification triggers. I have them all set up now with no problem using if the trigger works.

There is a problem I have in other macros. when I select "containing" in the notification trigger and type more than one word, there is no action. It only works if I type a single word.

How should I separate the words? What if it consists of two words?
example: life coach, car

If I want to make local variables, in which way can I write them. I searched and could not find it.

I am sharing the macro image that works now.
The suggestions I made were mage according to your initial needs.

If they have changed, it's up to you. But I don't understand your macro as EndIf statements of your several IF clauses are not visible (maybe truncated on the screenshot) and these multiple IF clauses are not indented as if they weren't imbricated...
 
Top