Pro lema para comparar valor

Dm114

Well-known member
Hola maestro,, ayer estuve probando y probando y no logro descifrar el enigma, pero esa variable está bien
Variable "x" and "s" could be the same. Unless you want to keep the original message in "x".
 

fase

Member
Buen día maestro, la verdad es que me superó, es más difícil de lo que se ve, las que configure yo fueron fáciles rápido y efectivo, ahora esta más enredado que pelea de serpientes, no hay forma de que funcione y estuve todo el día modificando y viendo plantillas , pero nada, no pude, tengo ganas de llorar ja ja ja ,
 

Dm114

Well-known member
Buen día maestro, la verdad es que me superó, es más difícil de lo que se ve, las que configure yo fueron fáciles rápido y efectivo, ahora esta más enredado que pelea de serpientes, no hay forma de que funcione y estuve todo el día modificando y viendo plantillas , pero nada, no pude, tengo ganas de llorar ja ja ja ,
So, how could we help you efficiently?
 

fase

Member
no se si modificar la que tengo y hacerla más simple y no tan extensa o hacer una nueva, te explico, en DISPARADOR tengo $ 12.* ( se supone que representa cualquier cifra entre $ 12.000 y $ 12.999 ) en ACCION tengo disparador activado que hace CLICK en esa cifra y luego otro CLICK en aceptar y listo, si aparece una cifra de $ 11.542 no hace nada, si quisiera que lea a la perfección tendría que escribir uno a uno las cifras ( 12.001, 12.002, 12.003 hasta llegar a 50.000, es mucho ) ahora porque $ 12.000 , es lo que necesito de ahí hacia arriba, se entendió ?
 

fase

Member
lo que tu me diste es genial pero , hay que saber .........
 

Attachments

  • Screenshot_20240502_135654_MacroDroid.jpg
    Screenshot_20240502_135654_MacroDroid.jpg
    683.7 KB · Views: 3
  • Screenshot_20240502_135708_MacroDroid.jpg
    Screenshot_20240502_135708_MacroDroid.jpg
    731.1 KB · Views: 3

Dm114

Well-known member
no se si modificar la que tengo y hacerla más simple y no tan extensa o hacer una nueva, te explico, en DISPARADOR tengo $ 12.* ( se supone que representa cualquier cifra entre $ 12.000 y $ 12.999 ) en ACCION tengo disparador activado que hace CLICK en esa cifra y luego otro CLICK en aceptar y listo, si aparece una cifra de $ 11.542 no hace nada, si quisiera que lea a la perfección tendría que escribir uno a uno las cifras ( 12.001, 12.002, 12.003 hasta llegar a 50.000, es mucho ) ahora porque $ 12.000 , es lo que necesito de ahí hacia arriba, se entendió ?
Sorry but your explanations are not very clear. It's not a matter of language: I understand Spanish not too bad and, in case of doubt, I use a translator. It's rather a matter of clarity.

I think I roughly understood the final target which is to validate (click at a specific place) when an amount is greater than a certain figure. Isn't it?

First question: how/who/when is this threshold etablished (what are the criteria)?

To facilitate understanding, could you please send 2 screenshots of messages/notifications you receive (1 greater and 1 lower than the threshold value).

Anyway, even if your macro screenshots are only part of your whole macro, it won't work in any way... ☹️
 

fase

Member
Exacto!!!!!!!!! Eso es lo que necesito, que haga click en el servicio que necesito, el criterio o el monto en dinero mínimo lo escribo yo, ejemplo en llos pantallazos que mandare hay 3 servicios y necesito que seleccione el que tiene valor sobre $ 5.000 , y luego haga click en aceptar reserva, si te das cuenta el numero de la direccion es 12205 y el precio es $ 6.508, ese es el servicio a seleccionar o cualquiera que esté sobre el valor de $ 5.000, espero haber sido más claro
 

Attachments

  • Screenshot_20240503_093703_Cabify Driver.jpg
    Screenshot_20240503_093703_Cabify Driver.jpg
    448.4 KB · Views: 2
  • Screenshot_20240503_093710_Cabify Driver.jpg
    Screenshot_20240503_093710_Cabify Driver.jpg
    473.6 KB · Views: 2

Dm114

Well-known member
Exacto!!!!!!!!! Eso es lo que necesito, que haga click en el servicio que necesito, el criterio o el monto en dinero mínimo lo escribo yo, ejemplo en llos pantallazos que mandare hay 3 servicios y necesito que seleccione el que tiene valor sobre $ 5.000 , y luego haga click en aceptar reserva, si te das cuenta el numero de la direccion es 12205 y el precio es $ 6.508, ese es el servicio a seleccionar o cualquiera que esté sobre el valor de $ 5.000, espero haber sido más claro
Yes now it's perfectly clear: thanks!

Hummm... The problem is much more complex than what you explained at the beginning. 😀
But I think it's feasible. Unfortunately we'll need to use actions requiring some advanced knowledge...

1⁰) How do you get the screen you showed me? How do you plan to trigger your macro: a floating button, receiving a notification?

2⁰) The triggered macro will have to store all the screen content via Read Screen Content action, then click on the selected amount

3⁰) Validate the reply on a 2nd screen

Could you please answer point 1⁰ and (if possible) sent a screenshot of the content of the Dictionary populated with the content of the screen with Read Screen Content?

The rest shouldn't be too hard to solve... 😉
 

fase

Member
Perfecto, la primera foto es la aplicación activada y la segunda foto aparece cuando seleccionas " reservas ", no creo que almacenar datos sea necesario, pienso que solo necesito tener un valor fijo $ para que la macro compare con el listado que aparece en la segunda pantalla que la activo yo y si es superior que haga su trabajo de hacer click para que se abra otra pantalla y volver a hacer click en la palabra ACEPTAR, un botón flotante sería perfecto pero si es más trabajo lo activo directamente de macrodroid, te enviaré un 3 pantallazo con otra que tengo y funciona perfecto, para que tengas una idea. Esta macro acepta todo lo que diga Aeropuerto (por eso pensé que seguir la lógica seria fácil) en resumen si lee aeropuerto, hace clic en la palabra, se abre otra minipantalla y vuelve a hacer clic en Aceptar.
no se si fui mas claro
 

Attachments

  • Screenshot_20240504_091431_Cabify Driver.jpg
    Screenshot_20240504_091431_Cabify Driver.jpg
    272.6 KB · Views: 3
  • Screenshot_20240504_091502_Cabify Driver.jpg
    Screenshot_20240504_091502_Cabify Driver.jpg
    402.4 KB · Views: 3
  • Screenshot_20240504_092958_MacroDroid.jpg
    Screenshot_20240504_092958_MacroDroid.jpg
    480.2 KB · Views: 3

Dm114

Well-known member
Perfecto, la primera foto es la aplicación activada y la segunda foto aparece cuando seleccionas " reservas ", no creo que almacenar datos sea necesario, pienso que solo necesito tener un valor fijo $ para que la macro compare con el listado que aparece en la segunda pantalla que la activo yo y si es superior que haga su trabajo de hacer click para que se abra otra pantalla y volver a hacer click en la palabra ACEPTAR, un botón flotante sería perfecto pero si es más trabajo lo activo directamente de macrodroid, te enviaré un 3 pantallazo con otra que tengo y funciona perfecto, para que tengas una idea. Esta macro acepta todo lo que diga Aeropuerto (por eso pensé que seguir la lógica seria fácil) en resumen si lee aeropuerto, hace clic en la palabra, se abre otra minipantalla y vuelve a hacer clic en Aceptar.
no se si fui mas claro
Ok, now I got the whole stuff! 😀

I was speaking about Floating button or any other trigger to prevent your macro from scanning screen content endlessly. I could be a further improvement of this macro! 😉

If your current macro works for "Aeropuerto" we'll keep it and just add a trigger for the amount and a few action lines to select the chosen amount...

New Screen Content trigger: Text content regex expression \$\s*\d+\.\d+

Actions: (see attached)

As I couldn't test it, hope I didn't make to many mistakes 😉

Before changing anything I'd advice you not to do it by yourself...

Carefully read comments above triggers/actions
 

Attachments

  • MDforum_fase.macro
    10.8 KB · Views: 5

fase

Member
Gracias, Ahora lo veré con un traductor para leer y le informo en el camino, la mía era de 3 líneas y la tuya tiene muchas ja ja ja nunca lo habría hecho , veremos como nos va
 

Dm114

Well-known member
Gracias, Ahora lo veré con un traductor para leer y le informo en el camino, la mía era de 3 líneas y la tuya tiene muchas ja ja ja nunca lo habría hecho , veremos como nos va
If you are unable to read comments in English inside the macro, tell me: I'll translate them in Spanish.

I should work flawlessly. The only point is, as I cannot reproduce the screen you get from your app, I don't know exactly how MacroDroid decodes it but I'm confident. 😉😀
 
  • Like
Reactions: Vr6

Dm114

Well-known member
...la mía era de 3 líneas y la tuya tiene muchas ja ja ja
It's the only (easy) way to scan every screen received from youra app.

Don't worry, in a while you'll be able to do same kind of macro by yourself: MacroDroid is to versatile and powerful! 👊
 

fase

Member
Ya modifique el disparador, trate de escribir el monto en amount pero no me da el signo $, es bien complejo el sistema........tratando de establecer las variables
 

Dm114

Well-known member
Ya modifique el disparador, trate de escribir el monto en amount pero no me da el signo $, es bien complejo el sistema........tratando de establecer las variables
Please don't modify any statement nor value inside the macro. The only thing you have to do is to manually set the minimum amount you want to reach to validate an order in the variable called Minimum (at the very bottom of the screen, in the dark turquoise area). Just enter this amount, i.e. type 5 if you want to set the minimum order value to $5.

Unfortunately I just noticed that I made a mistake with this variable. It had to be of decimal type instead of integer. So, before manually entering the minimal amount (5 in my example) you'll have to transform it from Integer to decimal type:
- First of all, delete the current Minimum variable
- Create a decimal variable with exactly the same name, ie,, Minimum as decimal (with upper case for the first letter),
 

Vr6

New member
If you are unable to read comments in English inside the macro, tell me: I'll translate them in Spanish.

I should work flawlessly. The only point is, as I cannot reproduce the screen you get from your app, I don't know exactly how MacroDroid decodes it but I'm confident. 😉😀
I'm Brazilian and I'm using a translator to communicate here,
I created a macro that when the text is copied, the clipboard will trigger the translation of the copied text, before starting the translation it will open a selection box to confirm the language from Spanish to English and from English to Spanish, after confirming the choice the translation will appear in a floating text, the idea is to help the translation of the macros by copying the comments and this macro that I configured will translate the comments, I hope it helped
 

Attachments

  • Language_Translator.macro
    19.5 KB · Views: 1

Dm114

Well-known member
I'm Brazilian and I'm using a translator to communicate here,
I created a macro that when the text is copied, the clipboard will trigger the translation of the copied text, before starting the translation it will open a selection box to confirm the language from Spanish to English and from English to Spanish, after confirming the choice the translation will appear in a floating text, the idea is to help the translation of the macros by copying the comments and this macro that I configured will translate the comments, I hope it helped
Maybe it could help @fase
 
  • Like
Reactions: Vr6
Top