Saturday, 3 July 2021

Play any song on Youtube... skip search results

 #include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>


Local $sAnswer = InputBox("Question", "Type the name of the song")
$url = "https://www.youtube.com/results?search_query=" & StringReplace($sAnswer," ","%20")
ShellExecute ("firefox.exe",$url)
Sleep(3000)
MouseClick($MOUSE_CLICK_LEFT, 400, 300, 2)

No comments:

Post a Comment