O.P. RE: Accessing information from the internet
function search(query, engine){
var shell = new ActiveXObject("WScript.Shell");
engine=engine.split("TEST");
query = query.replace(/\s/gi,"+");
shell.run(engine[0]+query+engine[1]);
}
how does this function work? I don't really need a detailed description of every line of code. What does 'query' need to be? Would that be the what you're searching for at google? Also, what would 'engine' have to be? Also, will this be the only function I need to use, disregarding something to filter out what I need?
Edit: I just tried out your code, but it doesn't retrieve information from the internet, it just goes to the appropriate website on the default web browser. This is useful in some cases, but what I'm trying to do is have the script get the required information itself and bring it back to be said in the conversation. Is this possible?
This post was edited on 10-07-2007 at 11:57 PM by ash44455666.
|