Notification Constrain is not working

shamsevan

New member
Hlw guys, can you please help with this issue. I am totally new here.
I have set a notification constrain with wait action and back action.but it is saying that it is reading the macro name "Doge Collect" as notification. And giving false value..
Actually i want to give 10 sec wait if a notification comes and want to press back buttong if another notification with different text comes. What can i do?

I have allowed all the Permissions.
Set the application for "any"
Checked trouble shoot options as well. Everything is okay there. What can be the problem please let me know! Screenshot_20211030-013231.jpgScreenshot_20211030-013341.jpg
 

Attachments

  • Screenshot_20211030-012844.jpg
    Screenshot_20211030-012844.jpg
    102.3 KB · Views: 5

shamsevan

New member
Like do u want me ti shate the macro? Sure. Please check.
 

Attachments

  • Doge_collect_.macro
    25.1 KB · Views: 4

FrameXX

Well-known member
Actually i want to give 10 sec wait if a notification comes and want to press back buttong if another notification with different text comes. What can i do?

You should rather use a 'notification received' trigger and save that info into boolean variable and use that booelan variable as a constraint instead of 'notification present'. That may help, but I really don't know.
 

shamsevan

New member
As i am new. I dont know how to set a trigger into variable. Can you please tell me the process if i can set the the trigger into a variable?
 

Qarboz

Well-known member
It is not clear to me what you would like to do
A trigger launches a macro, if you want to run another macro via a value of a variable it can be done
Explain what you would like to achieve
 

shamsevan

New member
It is not clear to me what you would like to do
A trigger launches a macro, if you want to run another macro via a value of a variable it can be done
Explain what you would like to achieve
Hello bro,thanks for responde. Actually if you look at the images.
I am running some actions. And i am running it in a loop. Please read requirements down below.

i am running a telegram add bot. It goes to a link from telegram conversation page. (I gave xy cordinates, cause links are dynamic).after redirecting to the page, there is a task. Sometimes i need to wait for 10 sec.sometimes not. Niw what i want is

1.Here, if a telegram message comes"Please wait 10 sec"(we know if we receive msg, it gives notification) , i want my macro to wait 10 second.( i used notification present constrains(any app,text contains option) )

2. If the waiting time is done, bot sends another message in telegram which contains some word like" this site can be bla bla bla "
If i get the second notification with the text "this site can be ", it will press backbutton. And return back from that page. ( i used same notification present option)

3. When it comes back telegram conversation page, if it see message contains " sorry there are no ads " it will break the loop.

Can u please give me a solution
 

Qarboz

Well-known member
You can use the constraint in "Break From Loop" action, to place before "End Loop" or after "Repeat 5 times", according to your needs. In the first case (as shown in the screenshot) the actions are performed then the loop is interrupted if the message matches, in the second case the loop is interrupted without performing any actions if the message matches


Doge_collect_.png
 

shamsevan

New member
Yes brother
You can use the constraint in "Break From Loop" action, to place before "End Loop" or after "Repeat 5 times", according to your needs. In the first case (as shown in the screenshot) the actions are performed then the loop is interrupted if the message matches, in the second case the loop is interrupted without performing any actions if the message matches


View attachment 1371
Yes brother i know. But problem is. Notification present constrain is not working. If notification comes. It is not waiting or going back.check the log file i attached here please, It is reading that the notification present (doge collect) which is my macro name.
 

Attachments

  • Screenshot_20211030-012844__01.jpg
    Screenshot_20211030-012844__01.jpg
    109.2 KB · Views: 5

420

Active member
Yes brother

Yes brother i know. But problem is. Notification present constrain is not working. If notification comes. It is not waiting or going back.check the log file i attached here please, It is reading that the notification present (doge collect) which is my macro name.
It's just not invoking because the constraint failed, this means that it is actually doing exactly what it is supposed to do..

Apparently there is no notification present (containing your text) at the time the macro is checking if there is or not..

I think this could either be because it really is not present at the time the macro checks if it is, or because there is an issue with the text that you have chosen to use as a notification contains constraint.. I don't really see what else could possibly be the problem here..
 

shamsevan

New member
Yes brother
You can use the constraint in "Break From Loop" action, to place before "End Loop" or after "Repeat 5 times", according to your needs. In the first case (as shown in the screenshot) the actions are performed then the loop is interrupted if the message matches, in the second case the loop is interrupted without performing any actions if the message matches


View attachment 1371
Yes brother i know. But problem is. Notification present constrain is not working. If notification comes. It is not waiting or going back.check the log file i attached here please It is reading that the notification present (doge collect) which is my macro name.
It's just not invoking because the constraint failed, this means that it is actually doing exactly what it is supposed to do..

Apparently there is no notification present (containing your text) at the time the macro is checking if there is or not..

I think this could either be because it really is not present at the time the macro checks if it is, or because there is an issue with the text that you have chosen to use as a notification contains constraint.. I don't really see what else could possibly be the problem here..
So how can i solve it :( the text is okay. I have double crossed it. How can i do that?
And if it comes back, touchtask can not read the msg in the conversation screen. I want to break the loop if it sees the message. Is it possible? My touchtask is can click on text and cant read conversation as well..all the permissions are checked..please solve these two problem! I attached the image. I want macro to stop whrn it will see the text cointans sorry. How will i do that?
 

Attachments

  • Screenshot_20211030-184934.jpg
    Screenshot_20211030-184934.jpg
    338 KB · Views: 4

420

Active member
Yes brother

Yes brother i know. But problem is. Notification present constrain is not working. If notification comes. It is not waiting or going back.check the log file i attached here please It is reading that the notification present (doge collect) which is my macro name.

So how can i solve it :( the text is okay. I have double crossed it. How can i do that?
And if it comes back, touchtask can not read the msg in the conversation screen. I want to break the loop if it sees the message. Is it possible? My touchtask is can click on text and cant read conversation as well..all the permissions are checked..please solve these two problem! I attached the image. I want macro to stop whrn it will see the text cointans sorry. How will i do that?
Well as i said something must not be ok, else the constraint on the if clause would be true and the action would run..

I think what you want to do is certainly possible but i'm a bit confused about this whole issue and i certainly cannot solve it for you.. sorry..
 

Qarboz

Well-known member
It is very important that the sequence of characters inserted in the constraint is exactly the same as that of the notification. For example, in #7 you wrote "sorry there are no ads", while in the image in #12 the sentence is different: "Sorry, there are no new ads"; there is a "," and a "new" of difference, in addition to "S" in uppercase instead of lowercase, but this probably shouldn't be a problem
 

Dm114

Well-known member
It is very important that the sequence of characters inserted in the constraint is exactly the same as that of the notification. For example, in #7 you wrote "sorry there are no ads", while in the image in #12 the sentence is different: "Sorry, there are no new ads"; there is a "," and a "new" of difference, in addition to "S" in uppercase instead of lowercase, but this probably shouldn't be a problem
You're 100% right!
 

shamsevan

New member
It is very important that the sequence of characters inserted in the constraint is exactly the same as that of the notification. For example, in #7 you wrote "sorry there are no ads", while in the image in #12 the sentence is different: "Sorry, there are no new ads"; there is a "," and a "new" of difference, in addition to "S" in uppercase instead of lowercase, but this probably shouldn't be a problem
Well thaks for the info.that notification is wrong but the upper constrains were accurate.those didnt work as well.. Still i am trying. I need some info again pls. Is there any way that i can pause my macro manually? I am running it. In certain time it is asking captcha. I wanna completele the captcha by myself and want to run it again! Is there any way?

And can macrodroid read text? And how does it do that? Touch task is not reading the conversation messages.
 

Qarboz

Well-known member
Well thaks for the info.that notification is wrong but the upper constrains were accurate.those didnt work as well.. Still i am trying. I need some info again pls. Is there any way that i can pause my macro manually? I am running it. In certain time it is asking captcha. I wanna completele the captcha by myself and want to run it again! Is there any way?

Try this
To pause it clears the notification, to restart it clears the new notification

doge.jpg




And can macrodroid read text? And how does it do that? Touch task is not reading the conversation messages.
for the text I am not able to help you
 

Attachments

  • Doge_collect_.macro
    29.4 KB · Views: 2

shamsevan

New member
Try this
To pause it clears the notification, to restart it clears the new notification

View attachment 1384





for the text I am not able to help you
Thanks bro... I am giving it a try and coming back to you..

Have you found any solution for captcha? If macro finds any captcha, it will stop and give a bell. Touchtask's reading text option is not working.it cant read captcha text
 
Top