topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 25, 2024, 5:29 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

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 - ecaradec [ switch to compact view ]

Pages: prev1 2 [3] 4 5 6 7 8 ... 17next
51
Ecaradec's Software / Re: Qatapult
« on: March 08, 2012, 07:03 AM »
@ewemoa, I spotted that as well. This is because the first escape hide the results but in the alfred skin the results are always visible so that hides just nothing. The second esc should exit though.

I'll add a fix for that, I just need to figure exactly how to do it. I'll probably need to defer the escape key handling to the skin.

52
Ecaradec's Software / Re: Qatapult
« on: March 08, 2012, 04:44 AM »
BTW, any chance of being able to use PgUp and PgDn for results navigation?
yes there is ;)

53
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 05:06 PM »
That's a very impressive work for a newcomer to javascript.

I've also added a few things to allow path trimming (... inside the middle of the path instead of the end ) and a textrendering hint that allow you to use full antialias or grid fit that looks darker on screens.

54
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 04:35 PM »
I tried a small test adding a background to the pigeonlips skin to test the new transparent results and it looks nice so I'm sharing it for just that reason. The picture is from here http://photography.n...ranean-sea-swimming/ I picked it a bit randomly on the internet.

55
Bugaid really accuratly identified some of the debugging pain point. I was dubious about what benefits you could bring but the video makes this totally clear. Breaking to a specific iteration of a loop is something I do really often. I only do C++ so I'll pass on this, but for professional C# coders that looks like an awesome tool.

56
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 06:50 AM »
Sorry for the strange previous response. I typed it on my phone, so it's a bit weird.  :P. I forgot to address some of your questions :

- For the input field I probably forgot to use the specified fontsize and color. I'll fix that.
- About 4, I'll give you a way to enumerate what is available inside the objects. Until that you can watch in the database too : anything that's available as a string in the DB is available via getArgValue. There are some properties that are deduced like rpath and rdirectory but there are only a few.

57
Ecaradec's Software / Re: Qatapult
« on: March 06, 2012, 05:31 PM »
For text color you can use textcolor on the UI object. You can also use the fontfamily property to select a different font.

The results have a white background, its actually not a very good idea, I'll give an option to change the colors. Anyways I'll probably give control on the display of the results.
Results are 40 pixels high right now, I use the size given in drawresults to know how much I can fit in.

3. Uuuh ? I'm not sure about what you mean, I'll give a look at the skin tomorrow

4. Don't worry about the performance of getstring it's in memory, you'll run out of place on the skin before it get slow

I've found a little issue with the usage bonus on results. It seems ignored on files. Beyond that, I'm splitting this info so that I get exact number of uses and last data for improving the quality and learning of qatapult

I love the start of that skin ;)

58
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 05:42 PM »
After another check, I think this is ok :P . Pray that I don't change my mind in a few minutes.

59
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 08:42 AM »
Looking back again, still there is an issue : the run command looks really bad, so does others.

60
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 07:16 AM »
It seems that the colors are actually corrects. The new ugly "internet explorer" icon induced me in error. What's the hell were they thinking ? The colors are so awful that I supposed that I had broken something !!!

61
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 03:05 AM »
Hum, judging from the colors of icons it seems that I forgot an alpha premultiplication. If you have weird colors, this is it : I'll fix that this evening.

62
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 02:56 AM »
Wuhuu !

63
Ecaradec's Software / Re: Qatapult
« on: March 05, 2012, 02:07 AM »
I've found a mistake that is probably causing the crash. Could you try it again ewemoa ?

Scores configuration is not available yet, you're correct.

64
Ecaradec's Software / Re: Qatapult
« on: March 04, 2012, 04:26 PM »
I've uploaded a new version. That make me think that it would be really useful that I make something to notify of changes...

- You can now script your skins. Having played with it, I think it feels really flexible and powerful. It should be pretty simple to do an Alfred like skin, or do a white background for text editing. You can control the position of each texts and add custom text for individual types, etc... I've reworked the two demonstrations skin so that you can see how to port your skin. If you had made skin you'll need to port those to the new system, there is not too many skins yet and I'll can provide help as needed. The code is a bit long (for a skin ) but I've added variable for the size of the different elements to help you to get started. Have a look at painter.js in the skin folder.

- I've also added a bunch of method on the qatapult object so those become availables for the collecter plugins as well. Ewemoa you should be able to code your openwith plugin... I think you'll found all the features you need. I'll write an api reference but for the moment most methods are demonstrated in the painter.js and they are pretty straigthforward.

- The presence of a debugger should not be required anymore now either. I wasn't able to really test it as I have too many debuggers installed, it would be a chore to get rid of every one of them. It would be nice if you could report me if it's ok.

65
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 06:56 PM »
No worry I'll add a getargvalue so that you get access to the other args. Of course this will make the source dependant of the rules.

66
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 06:36 AM »
Considering what you're trying to do I think you'll need an access to the current args available in the rule to display the appropriates verbs. I don't think it is doable with what's is available for plugins at this moment... unless you've found a trick ?

67
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 06:32 AM »
That's strange, it works perfectly here. Try adding something like that at the top and check if that result is visible. You might also ask for the 'openwith (catalog )' to see all the results available at this point (expects return true in all cases when you enter the catalog ).

results.addObject('TEXT', 'XXX', {'key': 'XXX', 'text': query});

I think that you'll need to define an OPENWITH type so that you can write rules. I don't know if that was clear from my explanation. That way you'll be able to create rules like FILE,'open with',OPENWITH with a correct filtering.

68
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 05:03 AM »
Yes, JScript debugger needs that you create interfaces for them to connect but they are only available if a debugger is available (nothing says that, that's just observations I learned latter from building fscript )

69
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 04:30 AM »
Great, I know what's the issue now ;)

70
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 04:08 AM »
It might be related to not having a script debugger installed. You might try to install http://www.microsoft...etails.aspx?id=22185 to check if that fix the crash. I remember that my code from fscript could have this issue, may be it wasn't fixed in the version I reused. Does it only happens when the 'snippets' plugin is installed ?

71
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 01:26 AM »
To test it : type any string from the text file 'bonjour', 'dinausaure',... Or add your own words, however this is a very useless plugin.

72
Ecaradec's Software / Re: Qatapult
« on: March 02, 2012, 01:21 AM »
 :tellme: yes normally you just unzip the plugin inside the plugin folder. Be careful there is a folder inside it, there should be only the folder plugins/snippets/(plugin content ).

May be some file or somthing like that is missing that is causing a crash. I'll fix that asap.

73
Ecaradec's Software / Re: Qatapult
« on: March 01, 2012, 04:40 PM »
Tada ! I'm proud to say that the new version include the first part of the extension mecanism of Qatapult :

This part allows you to publish new items into Qatapult. You can read them in anything that is FAST to read. FAST is important because being slow here will impact everything you do in Qatapult.  I've attached an example that read a text file and returns results to Qatapult.The whole available api is demonstrated in the example as there is only 4 functions. You can also create your custom type by giving it a special name and adding extra parameters. Here is what the plugin look like :

function collect(query,results) {
    if(!results.expects('TEXT'))
        return;

    var fso=new ActiveXObject("Scripting.FileSystemObject");
    var f=fso.OpenTextFile("plugins\\snippets\\text.txt");

    var objects=[];
    while(!f.AtEndOfStream) {
        var l=f.ReadLine()
        if(qatapult.match(l,query)) {
            results.addObject('TEXT',l, {'key':l, 'text':l, 'icon':'plugins\\snippets\\text.png'}); // TEXT is the type here, you can use CONTACT or FILE or your own type
        }
    }
    f.Close();
}

Because this kind of plugin has to be fast, I think that there will be separate extension mecanism for indexing slower things than would run periodically and save the results inside the sqlite db.

74
Ecaradec's Software / Re: Qatapult
« on: March 01, 2012, 05:36 AM »
I've come to the conclusion that there is too much details and positioning issue that I can solve with automatic settings :
- the inline skin looks correct but the positioning of icons is way too approximative so that the skin looks really nice, and this will apply to every skin we can do with the current system.

What I think I'll do is to gives the control of the display to a javascript plugin, that way each skin will be able to exactly place each component of the skin where it want. It will also be able to display extra datas from the focused pane or the current rule, etc...

It could look like something like that :

function draw(gui,focus,rule) {
    if(rule.length==3) {
        drawImage("background3.png",x,h,w,y);
    } else {
        drawImage("background.png",x,h,w,y);
    }
    
    drawInput(0,0,w,h)

    drawImage("focus.png",0,50,w,y);    
    drawImage("$0.icon",0,50,w,y);    
    drawText("$0.text",0,50,w,y);    

    drawImage("focus.png",100,50,w,y);    
    ...

    drawImage("focus.png",200,50,w,y);
    ...

    drawResults(x,y,w,h);
    ...
}

The current drawing function is completly independant from the rest, so binding all of these would not be really difficult.


75
Ecaradec's Software / Re: Qatapult
« on: February 28, 2012, 07:15 AM »
You new skin looks awesome pigeonlips. However I feel a bit lost without a focus and your skin would require a different focus for each position of the focus.

However there is a special rule that I haven't really documented yet for background that you might use for focus. Qatapult will take the background picture whose path match :

background_(nbitems)_(focus).png

So you can make different background that include the focus by making the following backgrounds :

background_2_1.png
background_2_2.png
background_3_2.png
background_3_3.png

You won't need to include the focus anymore. You also might want to keep a background.png so that Qatapult default on it if it can't find a match.



Pages: prev1 2 [3] 4 5 6 7 8 ... 17next