topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday March 29, 2024, 4:19 am
  • 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ChrisVN [ switch to compact view ]

Pages: [1]
1
FARR Plugins and Aliases / Re: Timer - closed
« on: March 03, 2009, 03:36 AM »
thanks a lot - downloaded the czb_pack  :)

2
FARR Plugins and Aliases / Re: Timer
« on: March 03, 2009, 03:06 AM »
The link seems to be broken!?

http://czb.dcmembers...gins/Timer/Timer.zip
-> 404 Not Found
    The requested URL /Plugins/Timer/Timer.zip was not found on this server.

is there a new URL to download the plugin?

3
Special thanks to ewemoa - 2 of your tips did the trick  :D

Trick #1: Python v3 is NOT working
After installing Python 2.6 the plug-in showed up in the list

Trick #2: Python requires the whole signature for onSearchBegin
Even though the java script samples don't use the whole signature, python seems to need all parameters including "modifierstring" and "triggermethod"

A big 'thank you' for the useful tips
now I can go on and experience the new possibilities.

4
[1] I didn't even notice the plugin appearing...
This is exactly what happend to me at first.
(I don't know what has changed that the plugin finally showed up)

-> Seems like I will have to work with Python v2.6

But I will also try this at first:
Ah, I didn't mention this earlier, but my sense of the corrupt text was that this happens if some of certain variables (e.g. releasedatestring) are not defined.

5
Thanks again

Tonight I will try out the suggested signature for onSearchBegin:
def onSearchBegin(querykey, explicit, queryraw, querynokeyword,
                  modifierstring, triggermethod):


chris

6
Thanks for the tips so far.

I will try the newest version of FScript and I will also try to get TodoTXT running.
I don't like the idea of downgrading to Python v2.x - but if we are running out of ideas I will also test this one.

Any other suggestions?
chris

7
Hello

First of all:
Thanks for FARR and FScript. I like controlling the PC with the keyboard - so this is a perfect tool  :)

As a former programmer I like the idea of extending the functionality with Python scripts.
I have been searching for a while for a reason to start learning Pyhton  ;)

So: I am new to FARR and Python and got stuck in the beginning.

What I tried to do: I converted the sample ruby-script to the Pyhton syntax.
BUT: the plugin doesn't show up at all in the list of plugins
OR: the proberties of the plugin only contain strange characters like ??????? (see attachted screenshot)

My Setup:
 - Windows Vista
 - ActiveState Python v3
 - FARR
 - FScript dll v1.8.0.0

I created a directory with those files:
c:\Program Files\FARR\Plugins\TESTPython\FScript.dll
c:\Program Files\FARR\Plugins\TESTPython\FScript.ico
c:\Program Files\FARR\Plugins\TESTPython\fscript.py

At this point I have no idea what the problem is  :tellme:
Any ideas to help me?

Thanks
Chris

p.s.:
this is the pyhton script:

Code: Python [Select]
  1. displayname="TESTPython"
  2. versionstring="0.0.1"
  3. author="Author"
  4. iconfilename="FScript.ico"
  5. aliasstr="ttt"
  6. regexstr=""
  7. regexfilterstr=""
  8. keywordstr=""
  9. scorestr="300"
  10.  
  11. # type
  12. UNKNOWN=0; FILE=1; FOLDER=2; ALIAS=3; URL=4; PLUGIN=5; CLIP=5;
  13. # Postprocessing
  14. IMMEDIATE_DISPLAY=0; ADDSCORE=1; MATCH_AGAINST_SEARCH=2;
  15. # search state constants
  16. STOPPED=0; SEARCHING=1;
  17.  
  18. def onSearchBegin(querykey, explicit, queryraw, querynokeyword):
  19.   FARR.setState(querykey,SEARCHING) #start search
  20.   #   return result to farr  (queryID,       , title                            ,path                            , icon                         , entrytype=FILE , resultpostprocessing=2        ,  score=300)
  21.   FARR.emitResult(querykey,"python TITLE", "python PATH", iconfilename, ALIAS    ,IMMEDIATE_DISPLAY ,5000)
  22.   FARR.setState(querykey,STOPPED) #stopped search

Pages: [1]