|
Post by sipsniper on May 5, 2021 18:25:51 GMT
hello..
i have problem triggering macro in aother macro
2 | IF | PIXEL COLOR | Color [R=2, G=122, B=219]::At Location [X:1265 Y:899] | IS THE SAME | GOTO MACRO LINE | 20
when running the macro containing the GOTO command alone does not cause a problem it work perfect
but i trigger this macro whith another macro with the this command :
2 | IF | PIXEL COLOR | Color [R=4, G=66, B=185]::At Location [X:1820 Y:945] | IS NOT THE SAME | RUN MACRO INLINE |
goto macro line order does not work. it doesnt going to macro line. it continious to next line like this command not exist.
any idea would help. thanks.
|
|
|
Post by zeak on May 5, 2021 22:43:12 GMT
Hi Sipsniper,
First of all, welcome to the forum.
It is a bit hard to tell the context of what you are trying to do with what you have shared, I personally use remarks when using the ACTION | GOTO MACRO LINE. I have an example below.
1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::40 2 | RUN ACTION | WAIT SECONDS | 3 * | Action 3 | X | X | 500 | Keypress Ctrl+ | c 4 | X | X | 500 | Keypress Alt+ | tab 5 | X | X | 500 | Keypress Ctrl+ | v 6 | X | X | 500 | Keypress enter 7 | X | X | 500 | Keypress enter 8 | X | X | 500 | Keypress Alt+ | tab 9 | X | X | 500 | Keypress down 10 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%::-1 11 | IF | INTEGER VARIABLE | %INTEGER% | IS | 0 | STOP 12 | RUN ACTION | GOTO MACRO LINE | Action In this example I'm using the remark "Action" as an anchor point for the GOTO MACRO LINE.
Hope this helps.
|
|
|
Post by sipsniper on May 6, 2021 0:32:58 GMT
thanks for the answer and sorry for my bad english i complete the macro contains this command : 2 | IF | PIXEL COLOR | Color [R=2, G=122, B=219]::At Location [X:1265 Y:899] | IS THE SAME | GOTO MACRO LINE | 20 named "xyz.macro" its working perfect. its goes to macro line 20 when its needed but i trigger this macro with another macro named asd.macro with using this command : 2 | IF | PIXEL COLOR | Color [R=4, G=66, B=185]::At Location [X:1820 Y:945] | IS NOT THE SAME | RUN MACRO INLINE | C:\xyz.macro when i start asd.macro its working, triggers the xyz.macro when needed but "goto marco line" command in xyz.macro not working. its continuous line 3 like this command not exist.
|
|
|
Post by Steve on May 6, 2021 7:48:37 GMT
Hi sipsniper "RUN MACRO INLINE" runs a saved macro file inline before continuing on with the macro. 1 | RUN ACTION | MESSAGE PROMPT | Start 2 | RUN ACTION | RUN MACRO INLINE | D:\Macro\xyz.macro 3 | RUN ACTION | MESSAGE PROMPT | End At line 2 in the example above we run xyz.macro inline and then proceed to line 3. No flow control actions, such as loops and GOTO's, can run whilst we run a macro inline. This is because the only flow control that can occur within Mini Mouse Macro is within the current macro list. More on 'Run macro inline' here www.turnssoft.com/conditions.html#runmacroinline. An alternate would be to run xyz.macro in another instance of MMM. Like this: 1 | RUN ACTION | MESSAGE PROMPT | Start 2 | RUN ACTION | RUN PROGRAM | D:\Macro\MiniMouseMacro.exe::"D:\Macro\xyz.mmmacro" /e 3 | RUN ACTION | MESSAGE PROMPT | End At line 2 in the above example we start an new instance of MiniMouseMacro and pass that instance the command line option to launch xyz.mmmacro. More on 'Run Program' here www.turnssoft.com/conditions.html#runprogram, and more on MMM command line switches here on the FAQ page. Hope this helps. Regards, Steve.
|
|
|
Post by sipsniper on May 6, 2021 9:37:29 GMT
hello, thanks for the answer but i cant use RUN PROGRAM it must be runned with inline command because i use infinity loop. this is a conditional automation macro. It should work smoothly on its own. if ı use RUN PROGRAM, 2 | IF | PIXEL COLOR | Color [R=2, G=122, B=219]::At Location [X:1265 Y:899] | IS THE SAME | RUN PROGRAM | c:\xyz.mmmacro when condition is met on abc.macro's this line , unlimited new xyz.macro windows open and i dont want to any new window so i must use RUN MACRO İNLİNE command. so there is no way to doing it i think
|
|
|
Post by zeak on May 6, 2021 22:50:03 GMT
hello, thanks for the answer but i cant use RUN PROGRAM it must be runned with inline command because i use infinity loop. this is a conditional automation macro. It should work smoothly on its own. if ı use RUN PROGRAM, 2 | IF | PIXEL COLOR | Color [R=2, G=122, B=219]::At Location [X:1265 Y:899] | IS THE SAME | RUN PROGRAM | c:\xyz.mmmacro when condition is met on abc.macro's this line , unlimited new xyz.macro windows open and i dont want to any new window so i must use RUN MACRO İNLİNE command. so there is no way to doing it i think Hi Sipsniper, Are you able to paste up your two codes so we can understand how your macro flows and functions.
|
|