Google rank can be gotten with just two clicks using a third party program. The program can be obtained at
http://www.nirsoft.net/utils/grank.html. I put the contents of the zip file in a folder called GoRank in my user macro folder. The following code can be put in whichever menu you choose. I just happen to have mine in a code test area. When the external window opens just click on "paste & retrieve" and you get the rank for page.
# test snippets of code here
# this version located in KM 1.5a1
# snippet.kmm
_Snippet_RunCode{
setclipboard($URL);
exec("\"".getfolder(UserMacroFolder)."\\GoRank\\grank.exe\"") ;
}
_Snippet_BuildMenu{
# add another option to Favorites menu
setmenu("F&avorites",macro,"Snippet Test",_Snippet_RunCode,3);
}
_Snippet_GetPath{
### Snippet.js is supposed to be located in the same folder as Snippet.kmm (this file).
### If it isn't, Windows Script Host will notify the user.
### Double underscore makes variable local only.
$__Data=readfile(getfolder(MacroFolder)."\\Snippet.kmm");
$_Snippet_Path=getfolder($__Data==""?UserMacroFolder:MacroFolder)."\\Snippet.js";
}
$OnStartup=$OnStartup."_Snippet_GetPath;";
$OnInit=$OnInit."_Snippet_BuildMenu;";
$macroModules=$macroModules."Snippet;";