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 ... 7 8 9 10 11 [12] 13 14 15 16 17next
276
FARR Plugins and Aliases / Re: Fscript trouble
« Last post by ecaradec on March 06, 2009, 04:44 AM »
is it a localized xp version too ?
277
You can find a socket sample in the fftab plugin. Here is an untested approximative sample :
function write(txt) {
    var sock=FARR.newTCPSocket("localhost",4242);
    sock.write(txt);
    sock.close();
}
function read(txt) {
    var sock=FARR.newTCPSocket("localhost",4242);
    do {
        var fragment=sock.read();
        content+=fragment;
    } while(!content.match(/END_OF_TRANSMISSION$/))
    sock.close();
}

You have to test for something while reading to detect when stopping to read since a read of 0 length can be caused by latency. Note that the loop will use maximum cpu. It would probably better to read asynchronously in a timer.

278
ChrisVN : Thank you for sharing your findings.  :Thmbsup:
279
Maybe ecaradec could offer a useful selection of WIN32 functions through the IFARR interface. He did do that in the old FScript plugin (exec and getIniValue).

I thought to use the lib_ffi (which is a wrapper that allow script language to call native code ) to allow jscript to call any native functions. However this is a bit laborious to bind with active scripting since nobody seem to have done that before. I'm not sure there is that many functions that would be useful.

You also have the FARR.getObject function available that give you access to the wmi objects. You also have sockets in the recent version. You could implement the functionnalities in a server and communicate via sockets. You could also use another script language that come with libraries that allow many more things than the jscript allow.
280
FARR Plugins and Aliases / Re: Fscript trouble
« Last post by ecaradec on March 02, 2009, 02:02 AM »
joby you seem to run farr from an unusual directory. May be you should  try to run it from the default "Program Files" just in case. You may try to uninstall the antivirus and firewall too.
Does anyone else had those issues ? If someone else has a romanian xp that would be really nice to try.
281
You  can get the lastest FScript version at http://e.craft.free.fr/farr/FScript/ . The last one is 1.15 currently.
282
Everything seem fine in your sample. I must say that I didn't even try to write a python plugin, since I know little about python. I'll have a look soon.
283
Find And Run Robot / Re: Google launches possible FARR competitor for windows
« Last post by ecaradec on March 01, 2009, 01:37 PM »
Bundling two product that have nothing in common show that google is really a big company ;).
284
FARR Plugins and Aliases / Re: New FARR plugin : FFTab allow to switch firefox tab
« Last post by ecaradec on February 09, 2009, 08:08 AM »
do I catch the pcommand on the onprocesstrigger function ?
285
FARR Plugins and Aliases / Re: New FARR plugin : FFTab allow to switch firefox tab
« Last post by ecaradec on February 09, 2009, 02:32 AM »
Is a pcommand just running a command on trigger ? It seem that I don't know everything FARR :). However if you look at the code, it is very easy to do something else with it. There is a ffeval function that open a socket, write and read then return the value.**

fsubscript is enough complete so that it could be distributed with FARR ihmo. Updates will do the rest. Czb is it ok for you ? May be we could put the update  somewhere on dc ?
286
FARR Plugins and Aliases / Re: New FARR plugin : FFTab allow to switch firefox tab
« Last post by ecaradec on February 07, 2009, 07:39 PM »
Sounds great. :Thmbsup: Will try it tomorrow. For this we need FF running of course. But in general, is it possible for mozrepl to interact with FF files (I'm specifically thinking of the bookmarks database file) even when FF is closed?
I don't think it is a solution for reading ffox data. mozrepl is running in the ffox process, so it is not available when ffox is not running. It is mostly useful for interactions.
287
FARR Plugins and Aliases / New FARR plugin : FFTab allow to switch firefox tab
« Last post by ecaradec on February 07, 2009, 02:20 PM »
I'm please to show my new little baby project. FFTab. FFTab connect FARR to Firefox to list the tabs and then switch them.

Installation steps :
1. first install mozrepl (you can use the direct xpi link - that would normally trigger the yellow firefox warning and install the firefox extension )
http://repo.hyperstr...repl/0.2/mozrepl.xpi
You can get more info at mozrepl at :
http://wiki.github.com/bard/mozrepl
then under tools click on "start" and "activate on startup"

2. then you need to install CZBFSubScript (attached ) instead of the current czb fsubscript if you already have it. Don't worry it should be 100% compatible with the last version (I took the CSB pack - is it ok CZB ? ) and only the fscript.dll has changed.

3. finally install FFTab (attached ), restart farr, and type fftab to list and switch tabs (you need to have a firefox open )

Good luck with installation.

I'm sure a lot of thing can be done with mozrepl since everything that is doable for firefox with extension can be done through repl. I hope we have some mozilla hackers here because I would love to see plugins interacting with Firefox. Creating tabs, switching, create shortcuts, extract html fragments etc... many things should be doable.


288
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on January 12, 2009, 07:08 AM »
may be we should put everything in dcupdate file ? It look a bit like a manifest...
289
FARR Plugins and Aliases / Re: Request - Ubiquity Plugin for FARR?
« Last post by ecaradec on January 12, 2009, 07:06 AM »
I would like that too. The Ubiquity interface is somehow different from the FARR one. I'm not sure we could directly connect to ubiquity. However The connection to firefox could be done throught mozrepl (a firefox extension ) with a socket. Then gBrowser.getBrowserAtIndex(x).contentTitle can get you the title of the 'x' tab.

Tab switching is probably not very complicated plugin to write.
290
Find And Run Robot / Re: Network access?
« Last post by ecaradec on January 06, 2009, 08:05 AM »
The feature has already been asked however. I doubt that it FARR include it natively soon. However, if someone what to implement it as a plugin it could be done faster.
291
Find And Run Robot / Re: Network access?
« Last post by ecaradec on January 05, 2009, 05:09 PM »
Its even doable with the new fscript getObject function by using the wmi class Win32_Share.
I would love to have this feature too.
292
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 20, 2008, 04:35 PM »
How can we extend context menu mouser ? Is there some setStrValue or something ?
293
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 20, 2008, 02:38 PM »
I upgraded the last fsubscript with new fscript.dll that support onprocesstriggerv2. onprocesstriggerv2 will be triggered on selection of items, context menu, tab completion. Since there is few plugins on fsubscript currently may be we could break compatibility and only support this new version when this version of FARR goes public ?
294
Developer's Corner / Re: Short Coder Essay: Plugins are Not For Users
« Last post by ecaradec on December 20, 2008, 02:31 PM »
I am really pleased that plugins developer give you more interest in improving FARR. This is probably the software that I use the most with Visual Studio and VIM. FARR is a great thing.
Someone said on the forum that you are a great motivator too. That is so true.
295
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 20, 2008, 08:34 AM »
Ewemoa I'm not sure we should add a regex library. Javascript has got one and even if this one is more powerful, most people don't master enough regexes so that it would make a difference (me included ).

However it could make sense as a extension library. If some plugin need it then it could chose to package itself as a fsubscript.js AND a extension.js that would be put in an extensions folder and evaluated in the global script space. That way other plugins could use the library, just tell that they require it to function and code won't be duplicated across many plugins.

There could be a separate maintainer for the library.
296
Edit: I think I see why getQueryString() may be necessary -- I guess not everything that ends up causing trigger() to occur originates from FZip's emitResult().
Exactly :) The doDeferedSearch caused a new search and it was painful to keep the correct query synchronized. The dark side was easier...
297
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 14, 2008, 05:49 AM »
The original purpose of FSubScript was to enable to write and share plugins more easily. It is good news that people experiment FSubScript versions. However I'm a bit lost in the rapid evolutions and the various versions. I don't know what to merge, what is the context and purpose of changes added.
May be the real purpose of FSubScript is to enable FARR user to write their own small plugins and the fact that there is no official FSubScript version is not an issue ? However I find that the original purpose would still be nice.

Here are possibilities we could change the current state :

I may eventually package an official version. However this would only be useful if we want to share plugins.

I think there is two kind of changes : extension functions and fsubscript behavior change.

Extension functions could be easily packaged as individual files and loaded by fsubscript. Functions like this could be store in individual file of folder and be managed by individual person. Ex : a function like enumRegistryKey could be defined in a fsubscriptExt.js and loaded by fsubscript before all scripts. This function could be used by any subscript. Plugins writer could propose individual extensions package whose purpose would be well identified and thus would be easier to track.

FSubscript behavioral changes could be done a bit the same way by replacing fsubscript default methods, but this is more fragile and I'm not sure it is a good idea. I would not go for it right now.
298
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 05, 2008, 05:40 PM »
I added support for the getObject (download the last fsubscript version ). Here is my test project that allow to read the registry.
I have some issues with it :
- I don't know how to enable completion without setting alias as a value... and alias is not filtered by the forceResultFilter... and complete with a space after the completion. Any idea welcomed. I have a very weak understanding of how the type value is interpreted by farr, it change a lot a various behavior.
- \ is still not triggering the search. I remount it up to fscript.dll. May be the fix don't work ? I have the v2.34.01 of FARR.
299
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ecaradec on December 05, 2008, 07:04 AM »
ewemoa, I can try to let git merge your change by importing it in a branch for you and then merge it. May be we should have a special thread to discuss technical decision so that the feature thread does not get filled with git tips... ?
We could have two branches. One that work with the currently released farr and one that work with the not yet released farr.

Ah, and as for a feature request, I have a use for being able to monitor folders for changes
Do you need it for reloading scripts ? or for some other reason ? In the first case FScript could reset the script engine and reload.

I'm done with the GetObject function. It was just what I thought and I will publish it today or tomorrow. This will allow to read the registry and some other uses like navigating network shares...
300
Is the last thing something I should worry about at all?
After changing core.autocrlf you should do a git reset --hard so that git get a new copy of file and correct end of lines and diff should be correct again. Any uncommited change will be erased in the process, so do it on a clean tree.
Pages: prev1 ... 7 8 9 10 11 [12] 13 14 15 16 17next