Copy then paste it into a url

How do i go about doing this? example would be it opens firefox with this url google.com/search or something and then whatever i copied would be pasted in after search

i have a ahk script that is looking like this ^<::
Run, google.com/search/clipboard%
Return

took a while but i found the solution here