Here is what I want to do:
!f:: Run, browserpath www.example.com?groupid=WANTPASTEDVALUE&exporttype=1&vehicle=34928 return
I want to put the value of the clipboard where WANTPASTEDVALUE is.
Thanks.
To get the contents of the clipboard in a command, use the built-in special variable, Clipboard
.
!f:: Run, "http://www.example.com?groupid=%Clipboard%&exporttype=1&vehicle=34928"
Notes: if you include the protocol (http://
or https://
in this case) windows will automatically choose your default browser and you can omit the path to the browser. This has the benefit of not forcing a user to use a browser that they don't like, and it's easier to write to boot.
Also, notice that I added quotes. If your clipboard contains a space and you run it without quotes, the browser will interpret it as two separate urls, which you certainly don't want.