Any support for ingredients?

Here you are welcome to post Push2Run feature requests
dscmbbltr
Posts: 1
Joined: Thu Jun 28, 2018 5:51 am

Any support for ingredients?

Post 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.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Any support for ingredients?

Post 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.
StefanoGiugliano
Posts: 5
Joined: Fri Jan 17, 2020 5:30 am

Re: Any support for ingredients?

Post 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"
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Any support for ingredients?

Post 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
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Any support for ingredients?

Post 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
StefanoGiugliano
Posts: 5
Joined: Fri Jan 17, 2020 5:30 am

Re: Any support for ingredients?

Post 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
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Any support for ingredients?

Post 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.
StefanoGiugliano
Posts: 5
Joined: Fri Jan 17, 2020 5:30 am

Re: Any support for ingredients?

Post 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?
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Any support for ingredients?

Post 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.
StefanoGiugliano
Posts: 5
Joined: Fri Jan 17, 2020 5:30 am

Re: Any support for ingredients?

Post by StefanoGiugliano »

Your software has a bug... $[,] --> This is not working...

can you fix it?
Post Reply