the difference of the two codes is only the link. (different site)
Error: Expected a String but got an Object.
081: If IB = ""
082: Return
▶ 083: Run('https://www.youtube.com/results?search_query=' IB)
Code: Select all
!j:: { ; google search
Gui "+LastFound +OwnDialogs +AlwaysOnTop"
IB := InputBox("", "google search")
if IB = ""
Return
Run('http://www.google.com/search?q=' IB)
}
!enter:: { ; youtube search
Gui("+LastFound +OwnDialogs +AlwaysOnTop")
IB := InputBox("", "Youtube search")
if IB = ""
Return
Run('https://www.youtube.com/results?search_query=' IB)
}