Um.. you might want to try this as well, it doesn't need to download the page (though there is a condition that it may fail; I'll explain later:
Code:
SetTitleMatchmode, 2
SetKeydelay, 0
winactivate, Merriam-Webster
winwait, Merriam-Webster
javscript = javascript:popWin('/cgi-bin/audio.pl?
Send, {f6}
Send, javascript:document.links[50].focus()
sleep, 10
send, {enter}
sleep, 100
StatusBarGetText, statbar, 1, a
ifinstring, statbar, %javscript%
{
Send, {enter}
}
else
{
Send, {f6}
Send, javascript:document.links[51].focus(){enter}
sleep, 10
send, {enter}
sleep, 100
ifinstring, statbar, %javscript%
{
Send, {enter}
}
}
return
Thing is, this checks twice. There have been only 2 page orders that I have seen, and there may be more, depending on the links on the page. But I think this will work on most cases. Tell me if there's a problem.
Oh yeah.. this needs that the page has been loaded. So.. you may want to put a little 'sleep' before this is run.
