Copy then paste it into a url

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

i have a ahk script that is looking like this ^<::

took a while but i found the solution here