|
Post by rayfusha on Dec 30, 2020 21:12:24 GMT
Buenas tardes, estoy haciendo un macro que tiene condicionantes de IF y ELSE usando PIXEL COLOR , si es VERDADERO corre un MACRO INLINE en un archivo, SI ES FALSO (ELSE) me regresa a la linea activa
5 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro | ELSE | 5 | RUN ACTION | GOTO MACRO LINE | 5
Este script me funciona porque no pierde tiempo al momento que el pixel color cambia
**pero A veces el programa 3ro no carga el PIXEL COLOR por lo que no se cumple la primera condicionante causando un bucle
*Quisiera que cuando no se cumpla la condicionante y se quede en bucle me reinicie el macro list ó corra otra MACRO LINE en un cierto lapso de tiempo
|
|
|
Post by Steve on Dec 31, 2020 1:00:51 GMT
Good afternoon, I am making a macro that has IF and ELSE conditions using PIXEL COLOR, if it is TRUE it runs an INLINE MACRO in a file, IF IT IS FALSE (ELSE) it returns me to the active line 5 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro | ELSE | 5 | RUN ACTION | GOTO MACRO LINE | 5 This script works for me because it doesn't waste time when the pixel color changes ** but sometimes the 3rd program does not load the PIXEL COLOR so the first condition is not met causing a loop * I would like that when the conditioner is not met and it remains in a loop, I restart the macro list or run another MACRO LINE in a certain period of time Creo que lo que necesitas es la acción 'CONTINUAR' ( www.turnssoft.com/conditions.html#continue). CONTINUE solo continuará la macro cuando la condición sea verdadera. Efectivamente, esto hace su mini bucle por sí solo. I think what you need is the 'CONTINUE' action (www.turnssoft.com/conditions.html#continue). CONTINUE will only continue the macro when the condition is true. Effectively this does your mini loop on it's own.5 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | CONTINUE 6 | RUN ACTION | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro
|
|
|
Post by rayfusha on Dec 31, 2020 19:47:10 GMT
Hi Steve , thx, but how can I get/write a condition like if NOT THE SAME COLOR in 1 minute REPEAT ALL MACRO , te lo agradecería y feliz Año Nuevo Steve !!
|
|
|
Post by rayfusha on Dec 31, 2020 20:10:45 GMT
Good afternoon, I am making a macro that has IF and ELSE conditions using PIXEL COLOR, if it is TRUE it runs an INLINE MACRO in a file, IF IT IS FALSE (ELSE) it returns me to the active line 5 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro | ELSE | 5 | RUN ACTION | GOTO MACRO LINE | 5 This script works for me because it doesn't waste time when the pixel color changes ** but sometimes the 3rd program does not load the PIXEL COLOR so the first condition is not met causing a loop * I would like that when the conditioner is not met and it remains in a loop, I restart the macro list or run another MACRO LINE in a certain period of time Creo que lo que necesitas es la acción 'CONTINUAR' ( www.turnssoft.com/conditions.html#continue). CONTINUE solo continuará la macro cuando la condición sea verdadera. Efectivamente, esto hace su mini bucle por sí solo. I think what you need is the 'CONTINUE' action (www.turnssoft.com/conditions.html#continue). CONTINUE will only continue the macro when the condition is true. Effectively this does your mini loop on it's own.5 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | CONTINUE 6 | RUN ACTION | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro STEVE
|
|
|
Post by Steve on Jan 1, 2021 3:20:41 GMT
Hi Steve , thx, but how can I get/write a condition like if NOT THE SAME COLOR in 1 minute REPEAT ALL MACRO , te lo agradecería y feliz Año Nuevo Steve !! A combination of PIXEL COLOR ( www.turnssoft.com/conditions.html#pixelcolor) and PIXEL RANGE ( www.turnssoft.com/conditions.html#pixelrange): 1 | IF | PIXEL COLOR | Color [R=111, G=96, B=248]::At Location [X:555 Y:123] | IS THE SAME | CONTINUE 2 | IF | PIXEL RANGE | At Location [X:555 Y:123]::Size [W:1 H:1] | CHANGES::1::60::0 | RUN MACRO INLINE | C:\Users\arqmi\OneDrive\Escritorio\MEGA\5.mmmacro
|
|