Skip to content

Instantly share code, notes, and snippets.

@Vanav

Vanav/fscript.js Secret

Created May 1, 2018
Embed
What would you like to do?
// plugin script :
displayname="FScript";
versionstring="1.0.0";
releasedatestring="Jan 1st, 2008";
author="Author";
updateurl="";
homepageurl="";
shortdescription="FScript";
longdescription="FScript";
advconfigstring="FScript";
readmestring="FScript";
iconfilename="FScript.ico";
aliasstr="fscript";
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;
function onSearchBegin(querykey, explicit, queryraw, querynokeyword, modifier, triggermethod) {
if(!explicit) {
return;
}
FARR.setState(querykey,SEARCHING);
//FARR.setStrValue("launch", "showhtml <i>hello here</i>");
//FARR.setStrValue("launch", "htmlviewurl https://ya.ru");
//FARR.setStrValue("launch", "showfilehtml C:\\Users\\Ivan\\Documents\\DonationCoder\\FindAndRunRobot\\browsercontents_.html");
FARR.setStrValue("launch", "showhtmlraw <i>hello here</i>");
FARR.emitResult(querykey,"Hello", "Hello", iconfilename,UNKNOWN,IMMEDIATE_DISPLAY,1000);
FARR.setState(querykey,STOPPED);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment