Page 1 of 2
Any support for ingredients?
Posted: Thu Jun 28, 2018 10:40 pm
by dscmbbltr
Thanks for making this! Have this now integrated with PushBullet and running commands from Google Home on my machine. Wanted to ask if there was any way to integrate ingredients. Tell my computer to $. $ is matched to a defined phrase within Push2Run. But is it possible to carry the $ through to the execution options?
Scenario:
"hey google, tell my computer to play Wild Wild Country"
In Push 2 Run, listen for "open $"
execute: chrome.exe
https://www.netflix.com/search?q=$
Basically looking for a tighter integration with netflix and other sites / executables.
Re: Any support for ingredients?
Posted: Fri Jun 29, 2018 7:53 pm
by RobLatour
Yes, infact that is already supported. It's documented in the help here:
https://www.push2run.com/help_v2.0.0.0.html but in short, you can add the $ to either the open field or the parameters field. There is even support for replacing the spaces between words you speak by something else if you need to - like for example a comma. Again, that's written up in the help linked to above.
Re: Any support for ingredients?
Posted: Fri Jan 17, 2020 5:35 am
by StefanoGiugliano
The option "$[,]" doens't work on my side with batch files.
I can see only the first word...
e.g. I invoke with "one two three" and I see the batch invoked only with "one" instead of being "one,two,three".
If I use instead "$[]"... it works and I get "onetwothree"
Re: Any support for ingredients?
Posted: Fri Jan 17, 2020 6:51 am
by RobLatour
Can you be more specific, what does your batch file need. If its just the whole string, the you can try this in your batch file:
https://stackoverflow.com/questions/161 ... batch-file
Re: Any support for ingredients?
Posted: Fri Jan 17, 2020 6:52 am
by RobLatour
Can you be more specific, what does your batch file need? If it's just the whole string, then you can try this in your batch file:
https://stackoverflow.com/questions/161 ... batch-file
Re: Any support for ingredients?
Posted: Sun Jan 26, 2020 9:19 am
by StefanoGiugliano
I need to take the input of "$" that is a string with spaces and pass it to the batch file, replacing spaces with commas being one single parameter.
As I already wrote in my original request
$ = "one two three" --> I want to pass to the batch file "one,two,three" as one single parameter
Re: Any support for ingredients?
Posted: Mon Jan 27, 2020 7:10 am
by RobLatour
if the $[,] is not working for you, perhaps you can pass the variable with spaces between the words - have them come into your batch file as multiple parms, and then in your bat file knit them together with the commas you need between the spaces.
Re: Any support for ingredients?
Posted: Tue Jan 28, 2020 4:33 am
by StefanoGiugliano
This is also not working... If I leave space, only the first word is passed to the batch...
Why can't you just fix this bug?
Re: Any support for ingredients?
Posted: Tue Jan 28, 2020 6:48 am
by RobLatour
I'm not sure it is a bug, it is the way Microsoft has designed batch files to accept parameters. I've been googling to see if I can find a work around, maybe surrounding things with quotes - I will keep looking. If you find something, please let me know.
Re: Any support for ingredients?
Posted: Wed Jan 29, 2020 4:11 am
by StefanoGiugliano
Your software has a bug... $[,] --> This is not working...
can you fix it?