It is currently March 28th, 2024, 7:07 pm

Looking to search multiple sites with single $UserInput$

Get help with creating, editing & fixing problems with skins
User avatar
Fluffybutt
Posts: 4
Joined: September 11th, 2018, 12:19 am

Looking to search multiple sites with single $UserInput$

Post by Fluffybutt »

I'm adding various search engines to my skin, but I'd love to search multiple sites from a single InputText box. An example would be typing a game name into a box and having it open tabs for Steam and GOG to search it. I can get two tabs to open, but the second one literally searches "$UserInput$". Is it possible? A good test skin would be the Google Search from "illustro". Changing parts of the code to these don't work:

Code: Select all

Command1=["http://www.google.com/search?q=$UserInput$"]["http://www.google.com/search?q=$UserInput$"]

Code: Select all

LeftMouseUpAction=[!CommandMeasure measureInput "ExecuteBatch 1-2"]

Command1=["http://www.google.com/search?q=$UserInput$"]
Command2=["http://www.google.com/search?q=$UserInput$"]
Last edited by Fluffybutt on September 11th, 2018, 1:30 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Looking to search multiple sites with single $UserInput$

Post by jsmorley »

Code: Select all

DynamicVariables=1
Command1=["http://www.google.com/search?q=$UserInput$"]
Command2=["http://www.google.com/search?q=[measureInput]"]
https://forum.rainmeter.net/viewtopic.php?f=118&t=18060
Hint: You can address using the input value multiple times by using the [MeasureName] string value of the InputText measure in the bangs. That value is set as soon as you hit Enter on the field, and is available to use in your CommandN bangs. More on that in our example skin in a bit.
User avatar
Fluffybutt
Posts: 4
Joined: September 11th, 2018, 12:19 am

Re: Looking to search multiple sites with single $UserInput$

Post by Fluffybutt »

Thanks! I was looking through that topic before posting, but didn't see that bit (-‸ლ)