I'm making a little script with Autohotkey to quickly go to the first Google result of a search term. My problem is, the only method I've found for doing this though the URL is acting a little inconsistent.
This only works when the first hit is deemed to be a very good match. Otherwise Google shows the normal 10 results. However, the actual "I'm Feeling Lucky" button on their front pages always takes you to the first result.
Try these links:
http://www.google.com/search?q=new%20york&btnI=745 <- works http://www.google.com/search?q=new%20york%20dijon&btnI=745 <- doesn't work
"new york dijon" on the front-page and then hitting "I'm Feeling Lucky" does work though.
Any idea how I can get it to consistently work in URL form?
Edit: Okay, seems this might not be doable in a single URL. I'll mark a greasemonkey-script workaround as correct if posted.