Code: Select all
SetBatchLines, -1
#NoEnv
IELoad(wb)
{
while wb.busy
Sleep, 100
}
InputBox, YTurl, ,Enter the YouTube URL to get the corresponding MP3 file:
WB := ComObjCreate("InternetExplorer.Application")
WB.Navigate("www.youtube-mp3.org") <-------Here's the link if you're interested in testing it
ieload(wb)
wb.visible:=true
wb.document.all.youtube-url.value:=YTurl <-------Here's the line with the error "This line does not contain a recognized action"
The name of the ID viz "youtube-url" is allegedly causing errors because of the hyphen in the name.
Any workaround or am I missing out on some crucial point?
Thanks in advance!