topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday November 29, 2025, 11:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 10 11 12 13 14 [15] 16 17next
351
Could you try to disable all your aliases, just to be sure ? :tellme:
352
I distributed an alias file independant of the plugin at a time. May be you download it ? Could you check if there is another dp alias somwhere triggering the delicious plugin ?
353
I seem that the 'dp' in wordpad trigger the delicious plugin. Could you check that the regex for dp is ^dp (.*) in the delicious alias group ?
354
Looks like you are scanning for a fixed set of suffixes (js, rb, vbs, py and pl).
I could search for fscript.* but it would not give me the language that I need to tell to the script control. I could set it in the config file, but I like beeing able to just define a file and have a working plugin. If you want to write a plugin in a language not the list, tell me and I'll add it.
355
FARR Plugins and Aliases / Re: Google Translation Plugin
« Last post by ecaradec on February 10, 2008, 04:29 AM »
Well, why not? Is there any reason why not to use javascript regex? So I am for ;)
It may be slightly incompatible with FARR regexes, there would be no call to onRegexSearchMatch. It wouldn't be possible to change the regexes from the FARR dialogs.
It's ok for me, may be someone has an objection :)
356
Ok the url is fixed.
For plugins developed using scripting languages (ruby, perl, python) that aren't included in WSH by default, do the users need to have the ActiveState engines installed on their machines?
Yes the active scripting engines must be installed. Look at : http://www.mvps.org/scripting/languages/
357
Fscript is a plugin that allow to write FARR plugin in javascript natively (and in others languages if they are correctly set up ). The principle is to copy the fscript.dll in a plugin folder, to add a file named fscript.js in the same folder (or fscript.rb, fscript.pl, fscript.py for others languages ).

Rem : If you are only interested in writing Javascript plugins you should consider using FSubScript plugin that does the same as FScript (actually FSubScript is itself a FScript plugin ) but can host many plugins simultaneously thus reducing the memory usage.
There is at least two version of FSubScript and the most up to date is CZB version available at : https://www.donation...ex.php?topic=17153.0

The FScript SDK is available at :
http://e.craft.free....es/FScriptSample.rar
The last FScript.dll is downloadable at :
http://e.craft.free....ipt/1.20/fscript.dll
A somewhat incomplete documentation is available at :
http://e.craft.free....rr/FScript/help.html

Here is a basic javascript plugin :
Code: Javascript [Select]
  1. // plugin script :
  2. displayname="FScript";
  3. versionstring="1.0.0";
  4. releasedatestring="Jan 1st, 2008";
  5. author="Author";
  6. updateurl="";
  7. homepageurl="";
  8. shortdescription="FScript";
  9. longdescription="FScript";
  10. advconfigstring="FScript";
  11. readmestring="FScript";
  12. iconfilename="FScript.ico";
  13.  
  14. aliasstr="fscript";
  15. regexstr="";
  16. regexfilterstr="";
  17. keywordstr="";
  18. scorestr="300";
  19.  
  20. // type
  21. UNKNOWN=0; FILE=1; FOLDER=2; ALIAS=3; URL=4; PLUGIN=5; CLIP=5;
  22. // Postprocessing
  23. IMMEDIATE_DISPLAY=0; ADDSCORE=1; MATCH_AGAINST_SEARCH=2;
  24. // search state
  25. STOPPED=0; SEARCHING=1;
  26.  
  27. function onSearchBegin(querykey, explicit, queryraw, querynokeyword, modifier, triggermethod) {    
  28.         if(!explicit) {
  29.                 return;
  30.         }
  31.         FARR.setState(querykey,SEARCHING);
  32.         FARR.emitResult(querykey,"Hello", "Hello", iconfilename,UNKNOWN,IMMEDIATE_DISPLAY,1000);
  33.         FARR.setState(querykey,STOPPED);        
  34. }

The full documentation is available on the aliases and scripts plugins wiki : http://farr.dcisv.co...script_documentation

Changelist
1.19
- restore the compatibility with previous versions. onProcessTrigger is emulated when the version of FARR use onProcessTriggerV2.
- increase the getStrValue buffer to 1 Mo allow to read bigger string
1.18 [warning incompatible change]
- onProcessTriggerV2 has change to onProcessTrigger to allow FARR plugins to behave the same way on new and old FARR versions.
=> the incompatible change is of interest for plugins writers, just rename the function in the script to get precedent behavior.
1.17
- fix a crash with the KlipKeeper plugin in AllowProcessTriggerV2.
1.16
- fix a crash in AllowProcessTrigger
1.15
- add socket support (string only, this is suitable for doing telnet like things )
1.14
- increase the size of getStrValue that could be bigger than expected
1.13
- add support for onProcessTriggerV2
1.12
- add the getObject function to access WMI facilities
1.11
- enable interprocess communication with the plugins through WM_USER+1 messages
- add support to read the keyboard state
- add support to read the current query in the input box
1.10
- add groupname and args to emitResults function and triggerResults
- add help file
- add onDoShowReadMe callback
1.8
- return a correct value on onStrValue Callback
- add ability to read .INI file (for easing compatibility with ahk )
1.6
- add support for onGetStrValue callback
- allow to not close FARR on onProcessTrigger
1.5
- support for api evolutions of FARR
- support callback for onDoAdvConfig
- support for onSearchBeginV2 and onRegexSearchMatchV2 callbacks
- support for onIdleTime
- support for onReceiveKey
- fix an incompatibility when multiple fscript plugins where loaded at the same time
- support for timers
- support for xml generated options (deprecated )


I released the sources of FScript if you want to throw an eye at it. You can grab a copy of the latest sources at http://github.com/ec.../fscript/tree/master. Adding function should not be very hard if you need them. Just look at other functions and add new ones. The scripts interface are exposed via COM so don't forget to edit the idl to add your functions too. You can ask questions too. I will certainly answer.
358
FARR Plugins and Aliases / Re: Google Translation Plugin
« Last post by ecaradec on February 09, 2008, 03:59 PM »
I uploaded a new SDK with the correction for option dialog. A conflict between several instances of fscript.dll caused the problem. Download the last SDK from https://www.donation...ex.php?topic=11804.0 . The options should work now. It is now possible to open the dialog on demand by calling FARR.showOptions(). I did it in the last delicious plugin, the dialog open after the installation of the plugins if the options are not configured.

I just realized how big the problem could be if there was a lot of plugins based on the fscript.dll. A bug in the SDK would force all developers of plugins based on the buggy SDK to upload a correction. I could create a version that does not use the regexes of FARR and let the plugins developers use the javascript regexes to match requests instead. Would that be acceptable ? This would help in creating a dll that is used for all plugins.


359
FARR Plugins and Aliases / Re: Google Translation Plugin
« Last post by ecaradec on February 09, 2008, 04:55 AM »
ecaradec: I would like to suggest something. Is it possible to make javascript SDK plugin such way that all javascript plugins would be saved in folder like Fscript/jsplugins/myplugin and there would be only one fscript.dll for all javascript plugins. So that you would be able to update fscript yourself without us. Now I have to update all fscript.dll for my plugins manualy...
This was my first idea. I'm not sure how I could do it, because FARR expect a plugin to export only one alias or one regex. I could make it work for aliases by filtering queries, but I'm not sure how I could do that for regexes because I would need to handle them myself and it may be not 100% compatible with FARR regexes.
360
FARR Plugins and Aliases / Re: Google Translation Plugin
« Last post by ecaradec on February 06, 2008, 07:04 AM »
What's the role of fscript.dll? There seems to be a problem with "it" or something in relation to it.
Hum, the dialog shouldn't show at all since there is no options to configure. I will remove that as soon as possible.
361
For example I start some script in FARR and open debugger and set some break.. so it stops on the break and in the meantime FARR starts to object that the script takes to long and if I want to stop it.. I say continue and both debugger and FARR are crashed...

I upload a new version of the FScript.dll that fix the timeout. I don't update the delicious plugin because there is no need to, but if you are working with the javascript SDK and the timeout is bugging you, the new FScript.dll fix the problem :

http://e.craft.free....pt/FScriptSample.rar

czechboy, I'm waiting for your plugins...
362
I do not know.. unfortunately I did not manage to start some kind of debugging with javascript...
Here is how I enabled javascript debugging on my desktop :
1. install the javascript debugger : http://www.microsoft...9&displaylang=en
2. set the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings\JITDebug=1 [DWORD]. I join a registry file that does that.
3. restart FARR (I may have forgotten that in the documentation )
Did some people achieved to enable the javascript debugger ? It make plugin developpement much easier.
363
Thank you very much for support mouser :).
364
Yes you are right, the match are a bit too easy. I change the last version so that the aliases only match at the start of the line followed by a space.
If you want to change some delicious plugin aliases you can export the aliases to you personal aliases then change them from there.
I really appreciate all my users. It's a pleasure that you like my work. 8)
365
Rrrr.  :-[. Glad you like it. Yes, the dialog is generated from the options document.

M. 8)
366
Oups! Characters case issue. Fixed. Thank.
367
The delicious plugin has been updated :
This is the last time you will have to set your password and you will now be able to do it from "advanced options" in a somewhat ugly but functional generated dialog. :)

M. 8)
368
I wrote a short documentation on how to use the Javascript SDK. It is just a beautiful thing of litterature. It is packaged with a javascript plugin sample sample and appropriately named the_fingers_in_the_nose_guide_to_build_javascript_plugin_for_farr.txt
Start hacking at : http://e.craft.free....pt/FScriptSample.rar

M. 8)

369
Thank you, mouser. Sorry for asking that again.
370
Sorry for asking that again mouser.

I may have miss something in the FARR behaviour or the plugin SDK.
I tried various plugins and I have the impression that FARR only update display when search is complete or when plugin tell they have Stopped. During the search FARR query results from the plugins progressively but it does not display them. Is it normal ?
With the internal file search if I type something like c:\\a.* files are found progressively and show up when found even if FARR is still searching. I can't find a way to get this behavior.
I made a javascript plugin that emit one result by second and I never see a result before the plugin set its state to Stopped.
I'm not really certain that this is not a bug in the JavascriptSDK, but the locate32 plugin seem to behave identically.


371
Yes I recognize that this is annoying. I will do something.
372
put the .alias file in the main zip right alongside the plugin and farr will find it.
also: maybe make a .dcupdate file for the plugin so farr will check for plugins.
ok it's done.
373
I uploaded a new version of the plugin that allow to explore tags  :P. The syntax changed a bit, you now have to type :
dlc +posts to get the list of posts or dlc +tags to get the list of tags. An option +nu allow to not query the server at each time : it is a bit faster.

The plugin propose the choice between posts and tags after you type dlc so you can type dlc<TAB> and you will get the posts without too much typing.

The download link is still http://e.craft.free....icious/delicious.zip. you can also get my alias file that avoid some typing : http://e.craft.free....ious/delicious.alias. It expose the following commands :
dp : list delicious posts
dpu : list delicious posts and update local copy if necessary
dt : list delicious tags
dtu : list delicious tags and update local copy if necessary



374
Wow, works great. Even better then the ff extension i have been using.
I can't tell you how long i have been waiting for someone, somewhere in ANY launcher to make a useful delicious plugin.
Thank you  :P.

My only minor request would be to have an option to include the favicons of the site which i think helps you visually find the site you are looking for. Although this might potentially slow down the search too much.
Good idea.

Another thing too :
I'm working on the tag list proposition but I'm hesitating on how to include it. Right now it would be "dlc +posts" or "dlc +tags" (with completion so that it is not too long to type ). Is it possible for a plugin to expose more than one keyword ? I could fake it with an alias and a dosearch but it would be nicer to package in entirely in the plugin.

375
In this case a plugin can let farr continue searching while it works, and send results as ready
This is the case for the delicious plugin. I send results after reading the cache firstly and a second time when I receive the server answer if the cache was not up to date and that new results are availables. Because of this I only set the search state to stop once the server has answered.
I tell FARR that new results are available by calling ExecuteCallback_SearchStateChanged, but results are only displayed after I set the search state to stop.
How often does FARR display intermediates results ?

PS : Could you move the messages to another thread mouser ?
Pages: prev1 ... 10 11 12 13 14 [15] 16 17next