try this, it works fine for me. Also you can define you own hotkey. Go to FARR settings/Hotkeys. Add new with "set search text bellow" checked only and in "text for search edit box" input "test\s". I have tested it with win+s
EDIT: you can also check "copy selected text" and type into "text for search edit box" "test $$c" instead. So it would copy selected text and add it as input
// plugin script :
displayname="Test";
versionstring="1.01.01";
releasedatestring="29.9.2008";
author="";
updateurl="";
homepageurl="";
shortdescription="Test";
longdescription="";
advconfigstring="Test";
readmestring="Test";
iconfilename="icon.ico";
aliasstr="test";
regexstr="";
regexfilterstr="";
keywordstr="";
scorestr="300";
// type
UNKNOWN=0; FILE=1; FOLDER=2; ALIAS=3; URL=4; PLUGIN=5; CLIP=5;
// Postprocessing
IMMEDIATE_DISPLAY=0; ADDSCORE=1; MATCH_AGAINST_SEARCH=2;
// search state
STOPPED=0; SEARCHING=1;
var qnk = "";
function onSearchBegin(querykey, explicit, queryraw, querynokeyword,modifierstring,triggermethod){
if(!explicit) {
if(aliasstr.indexOf(querynokeyword)!=-1) {
FARR.setState(querykey,1);
FARR.emitResult(querykey,aliasstr, aliasstr, iconfilename,ALIAS,IMMEDIATE_DISPLAY,300);
FARR.setState(querykey,0);
}
return;
}
qnk = queryraw.replace(/^test /,"");
FARR.setState(querykey,1);
FARR.emitResult(querykey,"Not in list", "0", "Core-Farr.ico",5,IMMEDIATE_DISPLAY,674);
FARR.emitResult(querykey,"hello", "1", "Core-Farr.ico",5,ADDSCORE,300);
FARR.emitResult(querykey,"wall", "2", "Core-Farr.ico",5,ADDSCORE,300);
FARR.emitResult(querykey,"dog", "3", "Core-Farr.ico",5,ADDSCORE,300);
FARR.emitResult(querykey,"cat", "4", "Core-Farr.ico",5,ADDSCORE,300);
FARR.setState(querykey,0);
}
function onProcessTrigger(title,path){
if(path == "Not in list")
FARR.setStrValue("PasteClipboardToLastActiveWindow", qnk);
else
FARR.setStrValue("PasteClipboardToLastActiveWindow", path);
}