topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday April 19, 2024, 11:40 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 - czb [ switch to compact view ]

Pages: prev1 ... 8 9 10 11 12 [13] 14next
301
FARR Plugins and Aliases / Re: Character Table
« on: February 08, 2008, 10:09 AM »
So I post a new version. It uses Arial Unicode MS (it is bundled with MS Office, or you can find it here http://rs344.rapidsh...7811754/ARIALUNI.TTF, but keep in mind that you must have MS Office to use it legally), or you can also use Code2000 http://www.code2000....et/code2000_page.htm

302
FARR Plugins and Aliases / Re: Character Table
« on: February 08, 2008, 02:38 AM »
Well javascript + RTF1 supports unicode (luckily), so what you see is unicode ;) And if HTML will be supported in good manner, it will also support unicode... so there is solution for unicode in FARR;) Without unicode you would not see half of the characters... :Thmbsup: I guess that those rectangles are japanese, or chinese etc characters... It is similar with google translate where you can not see chinese etc.. (at least on my computer it is so). Even when I try to translate to japanese on translate.google.com it displays question marks instead of words).

So should I erase those rectangles? Nobody will miss them?

as to the regex. I am sorry it was my private regex (since I like fast easy regex, where they can be without any meaning). So that is the reason for "cc" but if you do not like it I can post former regex ;)

as to adding new chars. Just post what and where I should input it and I will do it.

Ampa: you were right. for example courier new does not seam to support the ticks.
✓ u2713
✔ u2714
☑ u2611

✗ u2717
✘ u2718
☒ u2612

303
FARR Plugins and Aliases / Re: Character Table
« on: February 07, 2008, 02:34 AM »
Ahaha! Very good idea czechboy !
One little glitch in my case... The whole process of selecting a character etc. works well, but activating farr after using the plugin doesn't work as expected : farr briefly appears and disappears, and to have farr remain there after pressing the usual hotkey (ctrl+space in my case + I have the "highlight search edit text" enabled in the Hotkey configuration window), I have to quickly press back space to eliminate the previous "char" entry ("char ac", for example).

Ok. Here you have new version. It restrains you to type twice the same regex. So it should solve your problem ;)

304
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 06, 2008, 09:16 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...

305
FARR Plugins and Aliases / Re: Character Table
« on: February 06, 2008, 04:49 AM »
So new version ;)
type "char ac"
where "a" means row and "c" means 3rd letter (I could not use numbers since there are more than 10 letters in one row). After pressing "c" the letter is copied to the clipboard (I hade to use ActiveX clipboard since mouser's PasteClipboardToLastActiveWindow is not unicode :( ) and the FARR window is closed. then you just press ctrl+v where you want it ;)

306
FARR Plugins and Aliases / Re: Character Table
« on: February 06, 2008, 02:40 AM »
mouser: well, I think that something similar we can already do (ofcourse without that ALT) by propriate regex. What I would like to see more is real clickable link. Or better HTML ;)
concerning HTML this could be helpful:
http://www.c-sharpco...M/HyperlinkExec.aspx

307
FARR Plugins and Aliases / Re: Character Table
« on: February 05, 2008, 01:09 PM »
hi
as to 1) I have taken Sparkle as my source
as to 2) There is problem with unicode (I have bypassed it by RTF), but I have already writen to mouser if he can add some link ability to rtf.. so let us see and hope ;)
as to 3) could you please post exactly the characters in mention, so I can add them
as to 4) I will correct it ;)

308
FARR Plugins and Aliases / Character Table - closed
« on: February 05, 2008, 11:40 AM »
This topic has been discontinued.
See:
https://www.donation...ex.php?topic=17153.0

309
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 05, 2008, 05:48 AM »
OK. So I have modified RTF files and also all RTF printing so it works on my PC just fine... So lets say this is something like final version :-[ Hopefully everything works just fine. So please let me know if it does not work and what exactly does not work ;)

310
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 05, 2008, 01:44 AM »
I see.. fine. that is unicode description of the sentence. Ok.. Probably there is problem in RTF file or probably I have writen the RTF unicode wrong. Is here anybody who knows RTF1 very well so that he/she can help me in writing unicode the right way? Anyway what I would suggest is to make new RTF files in a program you use most (MS OFFICE etc), copy and paste the text from both RTF files in plugin folder and save and override the former RTF files. Probably it will help since those files are created in StarOffice on Czech locals... But it is only guess...
But I am glad to see that it went fine through all the way till the unicode ;)

one more thing to mouser: How do you display RTF in FARR? Is it dependant on the system or not? I mean, if it can happen that people have different version of RTF and display text differently or not...

311
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 04, 2008, 03:04 PM »
Armando: and what exactly does it tell you? If you have my last version, does it say: error: Connection failed... or error: No translation found...? BTW: Are you able to debug javascript?

Try this version and copy paste what it tells you ;)

312
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 04, 2008, 10:42 AM »
New version:
now it displays Greek, russian etc corectly (hopefuly)
you can write "gt 4 6 school"
or "gt school"
it remembers last chosen languages

313
FARR Plugins and Aliases / Re: Google Translation Plugin
« on: February 03, 2008, 04:56 AM »
well.. I must say that there may be (and I think there are) many bugs... so I will take a look into the code once more and see what is wrong there... And if you know just a little of javascript you are welcome to help me with it ;)

EDIT: nitrix-ud: I am not seasoned coder but let as see. If you try to translate "friend" from english french on this site ( http://translate.google.com/translate_t ) do you see there the result? if so, could you please copy and paste here source code of the page with result? so that I can check the regex... ;)

EDIT: I have found that English->German does not work for me even on translate.google.com (it writes the same in english as result).. strange :o

EDIT: I post a new version. Now you can type something like
gt en fr hello there my friend!
After space is pressed it searches for the result. So check it and tell me if it works or not ;)

314
I have created another version of On-line_Czech2X_Dictionary. I must say that it uses another website (slovnik.seznam.cz instead of slovnik.atlas.cz) which I think is much faster and has much better results. Also listing to other pages is different. Formerly you had to type something like this:
dd 1 school,2
and now just type anything instead of "2" to go to another page. Every letter is equal to next page (try it and you will see yourself;) )
example:
dd 1 school,cvfd
where "cvfd" = 4th side

Also you do not have to write number to choose language. In such case default language will be set automatically.

315
FARR Plugins and Aliases / Google Translation Plugin
« on: February 02, 2008, 04:44 AM »
DOWNLOAD:
As part of: CZB pack.

316
Well I can... just give me site you use most ;)

317
This topic has been discontinued.
See:
https://www.donation...ex.php?topic=17153.0

318
:) I am workin on it. But it is goining slowly since with coding I learn javascript so I make a lot of mistakes and most of the time I spend searching them. For example now I can not make FARR.emitResult.... work (I guess I have setState wrong positioned). And I also should start my bachalor project.. but I am working on it and learning it :)

319
ok I have done all the steps to enable debugging... and what now? when I type in xplorer2 this:
"$ cscript fscript.js" a window appears and this is there:
Microsoft (R) Windows Script Host verze 5.6
Copyright (C) Microsoft Corporation 1996-2001. Všechna práva vyhrazena.

Vstupní chyba: Pro příponu .js není k dispozici žádný skriptovací stroj.

Which says something like for .js there is no scripting machine

EDIT: wow I see, it is directly in farr... that is just great!!!! thanks a lot ;)

EDIT2: Unfortunately the debugging often crashes both FARR and the debugger itself. 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... :(

EDIT 3: So I have tried Microsoft Script Editor and it is faaaaaaaaaaaaar better than microsoft debugger. So everybody who has got MS Office 2003/XP/2000 or Frontpage 2003 etc. I recommend you to use MSE7 ;)

320
Hi, so I tried further to learn javascript SDK and the only thing I was not able to get working is FARR.setStrValue(x, y);
I have tried many of those combinations:
/// Possible options:
   ///
   ///launch, LAUNCHFILENAME
   ///statusbar, TEXTTOSETONSTATUSBAR
   ///setsearch, TEXTTOSETINSEARCHEDIT
   ///setsearchnogo, TEXTTOSETINSEARCHEDIT
   ///stopsearch
   ///window.hide
   ///window.show
   ///window.toggle
   ///window.richeditmode, TEXTOPUTINRICHEDITWINDOW
   ///window.richeditheight, HEIGHTOFWINDOW
   ///window.richeditwidth, WIDTHOFWINDOW
   ///setshowallmode
   ///exit
   ///reporterror, ERRORTEXTTOREPORTINPLUGINLOG
   ///clipboard
   ///PasteClipboardToLastActiveWindow,[TEXTTOSET] - paste the current clipboard text to the last active program (if value passed is not "" then clipboard will first be set to value.
   ///
but with no luck.
Could you please, ecaradec post here some sample code where you use it?

321
I do not know.. unfortunately I did not manage to start some kind of debugging with javascript.. so I do not know how to know if the function is called or not... :/ I like the simplicity of javascript (you have a few functions needed and that is all). Is there any other programming (free) language as simple (in case of farr plugins) as javascript is which is more easy to debug? I have tried to read devcpp SDK of FARR (since it is free) but it seams to me to complex to understand its structure and where to code what.. :/

322
unfortunately such thing does not seem to work:
function onProcessTrigger(title,path){
  FARR.setStrValue("PasteClipboardToLastActiveWindow",title);
}
what do I do wrong?

323
ok ok:) Where can I find "farr plugin action documentation"? I have found readme.txt in FarrPluginSDK but it is only general help, so I can not find there for example options of setStrValue (how to use richedit etc)

another thing is. I have found in readme.txt: "(Note FARR already has builtin funcionts to copy stuff to clipboard or to the last window open before FARR was triggered)". Are those functions accesible from javascript?

Sory for all my questions but as I said before, I am coding beginner ;)

324
Thank you for your response.
I have one more question:
How can I easily check if the plugin is working? now I have to go settings/click to eximine and configure plugins/find and reload all plugins to see the changes I have made which is quite time consuming. Is there any alias for reloading all plugins? Something like that is I guess in Launchy ;)

as for 1) You wrote: "Then you will handle the triggering of it." Is it this function "onProcessTrigger(title,path)" which handles it?

as for 2) Ok I will pospone development of this plugin to later time and will focus on other ideas I have (dictionary etc.)

as for 3) Could you be more specific where exactly I am supose to write setshowallmode? Is it somewhere here in this function FARR.emitResult?

325
Hi, I am working on "Character table" javascript plugin. I have several questions.
1)Could you please describe what UNKNOWN=0; FILE=1; FOLDER=2; ALIAS=3; URL=4; PLUGIN=5; CLIP=5; does? I am completely newbie concerning most of programming :)
2) Another question targeting to mouser: is there any way how to make all chars visible correctly? Now when I type "chars d" it displays completely mess (it should display those chars:"ð","đ","ď","dž","∂","δ"), I saved the text file as UTF-8 to have all the chars saved corectly :(
3) Is there any way how to display all result not only 9 of them? I now user can write "+sall" but I would prefer if for this plugin this would be set as default

Here is my code til now.. but still working on it:
// plugin script :
displayname="Character Table";
versionstring="1.00.01";
releasedatestring="Apr 1st, 2007";
author="Oldrich Svec<[email protected]>";
updateurl="";
homepageurl="";
shortdescription="Character Table";
longdescription="Character Table";
advconfigstring="Character Table";
readmestring="Character Table";
iconfilename="Delicious.ico";

aliasstr="chars";
regexstr="chars/.*";       // this is the farr regex
scriptregex=/chars\/(.*)/; // this is the plugin regexp (the group are not transfered to the onRegExSearchMatch currently )
regexfilterstr="$$1";
keywordstr="";
scorestr="300";
//autoreload=true;


// 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;

var string = new Array();
string[":"] = new Array("^_^","=^_^=","¬_¬");
string["$"] = new Array("¢","£","¤","¥","€","₣","₤","₧","₨","₠");
string["!"] = new Array("¡","¬");
string["?"] = new Array("¿");
string["^"] = new Array("¹","²","³","ⁿ");
string["/"] = new Array("÷","¼","½","¾","⅛","⅜","⅝","⅞");
string["+"] = new Array("±");
string["-"] = new Array("−","±");
string["*"] = new Array("×");
string["="] = new Array("≈","≠","≡","≤","≥");
string["."] = new Array("…");
string["a"] = new Array("á","à","ä","â","å","ā","ă","ą","ǎ","æ","ǟ","ǡ","ǣ","ǻ","ǽ","α");
string["A"] = new Array("Á","À","Ä","Â","Å","Ā","Ă","Ą","Ǎ","Æ","Ǟ","Ǡ","Ǣ","Ǻ","Ǽ","Α");
string["b"] = new Array("ß","β");
string["B"] = new Array("Β");
string["c"] = new Array("ç","č","ć","ċ","ĉ","©","χ");
string["C"] = new Array("Ç","Č","Ć","Ċ","Ĉ","©","Χ");
string["d"] = new Array("ð","đ","ď","dž","∂","δ");
string["D"] = new Array("Ð","Đ","Ď","DŽ","Dž","Δ");
string["e"] = new Array("é","è","ë","ê","ē","ĕ","ė","ę","ě","ǝ","℮","€","ε","η");
string["E"] = new Array("É","È","Ë","Ê","Ē","Ĕ","Ė","Ę","Ě","€","Ε");
string["f"] = new Array("φ");
string["F"] = new Array("₣","Φ");
string["g"] = new Array("ĝ","ğ","ġ","ģ","ǥ","ǧ","γ");
string["G"] = new Array("Ĝ","Ğ","Ġ","Ģ","Ǥ","Ǧ","Γ");
string["h"] = new Array("ĥ","ħ");
string["H"] = new Array("Ĥ","Ħ","Η");
string["i"] = new Array("í","ì","ï","î","ĩ","ī","ĭ","į","ı","ǐ","ij","∞","∫","η","ι");
string["I"] = new Array("Í","Ì","Ï","Î","Ĩ","Ī","Ĭ","İ","Į","Ǐ","IJ","Η","Ι");
string["j"] = new Array("ĵ","ij");
string["J"] = new Array("Ĵ","IJ");
string["k"] = new Array("ķ","ĸ","ǩ","κ","χ");
string["K"] = new Array("Ķ","Ǩ","Κ","Χ");
string["l"] = new Array("ĺ","ļ","ľ","ŀ","ł","lj","λ");
string["L"] = new Array("Ĺ","Ļ","Ľ","Ŀ","Ł","LJ","Lj","₤","Λ");
string["m"] = new Array("μ");
string["M"] = new Array("Μ");
string["n"] = new Array("ñ","ń","ņ","ň","ʼn","ŋ","nj","η","ν");
string["N"] = new Array("Ñ","Ń","Ņ","Ň","Ŋ","NJ","Nj","Η","Ν");
string["o"] = new Array("ø","ó","ò","ö","ô","õ","ō","ŏ","ő","ǒ","ǫ","ǭ","œ","°","ο","ω");
string["O"] = new Array("Ø","Ó","Ò","Ö","Ô","Õ","Ō","Ŏ","Ő","Ǒ","Ǫ","Ǭ","Œ","Ο","Ω");
string["p"] = new Array("þ","₧","π","ψ");
string["P"] = new Array("Þ","ß","Π","Ψ");
string["r"] = new Array("ŕ","ŗ","ř","ȑ","ȓ","®","√","ρ");
string["R"] = new Array("Ŕ","Ŗ","Ř","Ȑ","Ȓ","®","Ρ");
string["s"] = new Array("š","ś","ŝ","ş","ß","Σ","√","∫","σ","ς");
string["S"] = new Array("Š","Ś","Ŝ","Ş","Σ");
string["t"] = new Array("ţ","ť","ŧ","™","θ","τ");
string["T"] = new Array("Ţ","Ť","Ŧ","Θ","Τ");
string["u"] = new Array("ú","ù","ü","û","ũ","ū","ŭ","ů","ű","ų","ǔ","ǖ","ǘ","ǚ","ǜ","ȕ","ȗ","υ");
string["U"] = new Array("Ú","Ù","Ü","Û","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ȕ","Ȗ","Υ");
string["w"] = new Array("ŵ");
string["W"] = new Array("Ŵ");
string["x"] = new Array("ξ","χ");
string["X"] = new Array("Ξ","Χ");
string["y"] = new Array("ý","ÿ","ŷ");
string["Y"] = new Array("Ý","Ÿ","Ŷ");
string["z"] = new Array("ź","ż","ž","ζ");
string["Z"] = new Array("Ź","Ż","Ž","Ζ");

function debug(msg) {
    if(typeof(WScript)!="undefined")
        WScript.StdOut.Write(msg+"\n");
}

function doQuery(query) {
     FARR.setState(1);
    if(query == ""){
      FARR.emitResult("Type a letter", "test", iconfilename,FILE,IMMEDIATE_DISPLAY,300);
    }else if(string[query] != undefined){
      for(var i=0; i<string[query].length; i++){
        FARR.emitResult(string[query][i], string[query][i], iconfilename,CLIP,IMMEDIATE_DISPLAY,300);
      }
    }else{
      FARR.emitResult("No match", "test", iconfilename,FILE,IMMEDIATE_DISPLAY,300);
    }
    FARR.setState(0);
}

function onSearchBegin(explicit, query, query_nokeyword) {
    if(!explicit) {
        if(aliasstr.indexOf(query)!=-1) {
            FARR.setState(1);
            FARR.emitResult(aliasstr, aliasstr, iconfilename,ALIAS,IMMEDIATE_DISPLAY,300);
            FARR.setState(0);
        }
        return;
    }

    doQuery(query_nokeyword);
}

function onRegexSearchMatch(query) {
    var query_nokeyword=query.match(scriptregex)[1]

    doQuery(query_nokeyword);
}

// There is no debugging when the script is executed in FARR
// Run the script with "cscript fscript.js" to debug it while developpement
if(typeof(FARR)=="undefined") {
    FARR={
        emitResult:function(title, path, icon, type, postproc,score) {
            WScript.StdOut.Write("title:"+title+"\n");
            WScript.StdOut.Write("path:"+path+"\n");
            WScript.StdOut.Write("icon:"+icon+"\n");
            WScript.StdOut.Write("type:"+type+"\n");
            WScript.StdOut.Write("postproc:"+postproc+"\n");
            WScript.StdOut.Write("score:"+score+"\n");
        },
        setState:function(s) {
            WScript.StdOut.Write(s+"\n");
        }
    }
    //onSearchBegin(true, "deli","test");
    onRegexSearchMatch("deli/joke")
    WScript.Sleep(1000);
}

Pages: prev1 ... 8 9 10 11 12 [13] 14next