Post by ghirotre on Oct 30, 2018 11:09:04 GMT
Hello,
I use micro mouse macro to connect my home automation with google home. I must say that it is a super program.
I asked if these 2 things are possible:
1. integration with IFTTT, I am now using pushbullet and push2run to start micro mouse macros on my pc and automate everything. It would be nice, to avoid other programs, if IFTTT could start macros on my PC directly.
2. Can I start macros from the dos prompt without starting a new instance all the time? Because the pc I'm using is old and slow, so to open a new instance of mmm takes about 1 second.
Obviously the 2 things for me are connected, because for each command to google home a .bat is started that starts a macro of mmm so I turn on or turn off the light.
it would be really handy to be able to start macros via web browser.
So with ifttt and webhooks i can command mmm
The solution from Steve is:
1. The macro below reads in input to a variable from the file INPUT.txt and stores that value to STRING.
2. If STRING = START the macro will continue and define STRING to WAIT.
3. The macro will run each line in mymacro.mmmacro
4. When the macro is finished it will loop to line 2 and again wait for INPUT.txt to contain START
1 | RUN ACTION | INPUT FROM FILE | STRING::REFRESH::\Macro\RX\INPUT.txt
2 | IF | STRING VARIABLE | %STRING% | CONTAINS | START | CONTINUE | AND | 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::WAIT
3 | FOR | EACH | LINE IN | E:\Dropbox\Macro\_ 1.mmmacro | RUN
4 | RUN ACTION | WAIT SECONDS | 2 | AND | 5 | RUN ACTION | GOTO MACRO LINE | 2
For this to work in your situation your batch file will need to edit INPUT.txt to contain the word START. Something like this in batch: echo START>INPUT.txt
You will also need the macro file you want to be at the mymacro.mmmacro location.
The problem is that I have about 60 different macros to start. Maybe put in the string the name of the macro and calling it in the command of the line 3 (ex. 3 | FOR | EACH | LINE IN | E:\Dropbox\Macro\%STRING%.mmmacro | RUN
Thanks for all
I use micro mouse macro to connect my home automation with google home. I must say that it is a super program.
I asked if these 2 things are possible:
1. integration with IFTTT, I am now using pushbullet and push2run to start micro mouse macros on my pc and automate everything. It would be nice, to avoid other programs, if IFTTT could start macros on my PC directly.
2. Can I start macros from the dos prompt without starting a new instance all the time? Because the pc I'm using is old and slow, so to open a new instance of mmm takes about 1 second.
Obviously the 2 things for me are connected, because for each command to google home a .bat is started that starts a macro of mmm so I turn on or turn off the light.
it would be really handy to be able to start macros via web browser.
So with ifttt and webhooks i can command mmm
The solution from Steve is:
1. The macro below reads in input to a variable from the file INPUT.txt and stores that value to STRING.
2. If STRING = START the macro will continue and define STRING to WAIT.
3. The macro will run each line in mymacro.mmmacro
4. When the macro is finished it will loop to line 2 and again wait for INPUT.txt to contain START
1 | RUN ACTION | INPUT FROM FILE | STRING::REFRESH::\Macro\RX\INPUT.txt
2 | IF | STRING VARIABLE | %STRING% | CONTAINS | START | CONTINUE | AND | 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::WAIT
3 | FOR | EACH | LINE IN | E:\Dropbox\Macro\_ 1.mmmacro | RUN
4 | RUN ACTION | WAIT SECONDS | 2 | AND | 5 | RUN ACTION | GOTO MACRO LINE | 2
For this to work in your situation your batch file will need to edit INPUT.txt to contain the word START. Something like this in batch: echo START>INPUT.txt
You will also need the macro file you want to be at the mymacro.mmmacro location.
The problem is that I have about 60 different macros to start. Maybe put in the string the name of the macro and calling it in the command of the line 3 (ex. 3 | FOR | EACH | LINE IN | E:\Dropbox\Macro\%STRING%.mmmacro | RUN
Thanks for all