Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 482

How to add Url Encoding to $UserInput$

$
0
0
I have this section of code in my rainmeter script:

Code:

Command1=!Execute ["http://www.google.com/search?q=$UserInput$"] DefaultValue=""
I want to change this script so that the $UserInput$ area adds url encoding to it. That way, if I type something like # into the search box, instead of going to http://www.google.com/search?q=# and redirecting me to http://www.google.com/webp, it goes to http://www.google.com/search?q=%23

Statistics: Posted by banana — Today, 3:13 am — Replies 1 — Views 46



Viewing all articles
Browse latest Browse all 482

Trending Articles